Building Custom Laravel Packages: From Basics to Advanced Features π§
π― #Laravel package development walkthrough shows implementation of method #caching using #PHP attributes and #composer initialization
π§ͺ Emphasizes #TDD approach using #Orchestra Testbench and #PestPHP for robust package testing
β‘ Covers essential concepts including service providers, dependency injection, and #caching implementation with practical examples
π Demonstrates workflow optimization using local repository linking instead of direct deployment to #GitHub or #Packagist
π οΈ Includes setup of package structure, namespace configuration, and integration of facades and console commands
π Features comprehensive guide to #autoloading and package auto-discovery for seamless integration
π #PHP Core Updates
β’ #PHP 8.4 RC3 available for testing, final release expected Nov 21
β’ Security updates released for PHP 8.1.30, 8.2.24, and 8.3.12
β’ New RFC proposals for closure support in constant expressions and persistent curl handles
π οΈ Tools & Frameworks
β’ #Composer 2.8.0 launches with patch-only updates and new command options
β’ #PestPHP v3 introduces mutation testing and arch presets
β’ #APIplatform 4 released with official #Laravel support
β’ #Symfony celebrates 19th anniversary with version 7.2 updates
π’ Community & Foundation
β’ #ThePHPFoundation joins #opensource pledge
β’ New Web Services Tool for PHP-FPM delivered
β’ Core roundup series relaunched in partnership with PHP.Watch
β’ Foundation actively seeking new sponsors
π― Development Tools
β’ #PHPStorm 2024.3 EAP launched with full PHP 8.4 support
β’ New profiling extension with web UI: php-spx
β’ imliam/cpx introduces npx-like functionality for PHP
β’ Multiple new testing and code quality tools released
https://blog.jetbrains.com/phpstorm/2024/10/php-annotated-october-2024/
A Guide to Architecture #Testing Presets in Pest 3 https://benjamincrozat.com/pest-3-architecture-testing-presets?s=09
Effortlessly test all #php #Laravel routes with pest-plugin-route-testing π
β
Verify all routes
π Test specific routes with wildcards
π Handle model bindings
π οΈ Customizable assertions
https://github.com/spatie/pest-plugin-route-testing/tree/main
Spent today converting a project from #phpunit to #Pestphp. Took a while to get set up with the Pest config file, but much prefer the readability and the built in parallel testing.
Haven't managed to get the `--dirty` option to work yet though.
Inside the Sail container I get no output. Outside the container I get an error saying git is required...
I wrote a little blurb about my new found fondness of testing in PHP. Previously, almost a decade ago, getting tests to work was a pain. Golang was such a breath of fresh air.
Today, in 2024, testing on PHP is good actually if you use Pest
https://javorszky.co.uk/2024/05/06/pest-in-php-is-good-actually/