What's coming in Laravel 11 and PxP, a new superset for PHP
We have TypeScript for Javascript and now, PxP for PHP. Also, what's new in Laravel 11 and more.
Elevate Your Development Team with a Skilled Developer-as-a-Service!
Experience rapid, high-quality development tailored to your needs. With Developer-as-a-Service you can deliver from MVPs to seamless integrations, our expertise covers it all. A fixed monthly rate that you can cancel or pause at any time.
Book a call now or see available plans!
[Ad] https://developerjoy.co
Laravel
📚 Laravel 11, what’s coming?
Laravel 11 is scheduled to be released in Q1 of 2024, but some beta features have been shared in the Laracon keynote.
Streamlined Directory Structure: Controllers no longer extend anything by default, the middleware directory is removed, and middleware customization is moved to the App/ServiceProvider.
No more Http/Kernel: Most of the functionalities of the Http/Kernel can now be done in the Bootstrap/App.
Model Casts Changes: Model casts are now defined as a method instead of a property, allowing more flexibility.
Config Changes: Laravel 11 removes config files, and all config options cascade down from .env. A new config:publish command is introduced to bring back specific config options.
Slimmed Default Migrations: Default migrations from 2014 and 2019 now come without dates and are moved into two files.
Routes Changes: Laravel 11 has only two default route files (console.php and web.php). API routes and websocket broadcasting can be added using php artisan install:api and php artisan install:broadcasting respectively.
Console Kernel Removed: The Console Kernel is removed, and console commands can be defined directly in routes/console.php.
Named Arguments: Laravel's backward compatibility guidelines do not cover named arguments, so caution should be exercised when using them.
PHP 8.2 Minimum Support: Laravel 11 requires a minimum of PHP 8.2.
Laravel Support Policy: Bug fixes are provided for 18 months and security fixes for 2 years for Laravel releases. Additional libraries receive bug fixes only for the latest major release.
😱 Did you know about snapshot testing with Pest?
Symfony
🆕 Symfony 6.3.3 released
51b1527: [Scheduler] fix null pointer exception in debug:scheduler command
d9d0bde: [Webhook] allow slash in webhook type
f65b0a4: [VarExporter] fix calling scope detection inside magic accessors
e9413c7: [Scheduler] postpone schedule creation
Misc
🆕 PxP
For JavaScript we have TypeScript and now, for PHP we have PxP.