Best Practices for Adopting PHP 8.3
SOLID principles PHP Edition; Fix PHP 8.4 deprecation; Handling Video Streaming and Byte Range Requests in PHP; and Symfony 7.0.7 released.
PHP RFCs
📣 RFC: new MyClass()->method() without parentheses
Valentin Udaltsov suggested removing unnecessary parentheses in object initialization expressions, which triggered a heated discussion on X (formerly Twitter).
More RFCs:
Joshua Rüsweg proposed adding a new function to find the first element for which a predicate callback returns true.
📣 RFC: Casing of acronyms in class and method names
Tim Düsterhus proposed revisiting the prior decision of the Class Naming RFC and suggested treating acronyms like regular words and using PascalCase for class names.📣 RFC: Support object type in BCMath
BCMath currently supports only procedural functions. Saki Takamachi proposed adding support for object types in the module.✅ RFC: Deprecate GET/POST sessions
PHP currently supports two ways of accepting session token IDs: via cookies or using GET/POST request parameters.Using URL parameters (GET) and hidden form input fields (POST) has many drawbacks, both in terms of security and usability.
Accepting session token IDs using GET or POST parameters will be deprecated in PHP 8.4 and removed in PHP 9.
Security support for major PHP versions has increased by one year. The lifespan of each PHP version will be 4 years: 2 years of bug fixes and 2 years of security fixes.
The changes apply immediately to all currently supported branches, and the PHP 8.1 branch will receive an additional year of security fixes.
✅ RFC: Grapheme cluster for str_split function: grapheme_str_split
PHP
📚 SOLID principles PHP Edition. Today, Interface Segregation Principle
We are almost ending the series of articles about the SOLID principles. Here you have a brief explanation of each principle to review them.
📚 Fix PHP 8.4 deprecation: Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead
PHP 8.4 will be released in November 2024, but the list of new features and deprecated features is already very established. It is clearly detailled on php.watch/versions/8.4.
📚 Handling Video Streaming and Byte Range Requests in PHP
In this article, we'll explore how to handle byte range requests in PHP to enable video seeking functionality.
📚 Calculate Execution Time PHP
To calculate the execution time of a job using PHP, you can utilize the microtime() function. Here's a step-by-step guide.
📚 Twig vs Blade (vs Latte)?
You probably know and can find plenty of articles on the internet comparing Twig and Blade. They’re both templating engines for PHP and have their pros and cons. But what about Latte? It’s not as well-known, but it’s better than you might imagine, and not just in terms of security.
📚 Effective Strategies for Handling Database with Millions of Records and Mass User Access
As an application runs over time, its database naturally expands due to the need to store historical activity.
Laravel
📚 Exploring Middleware Updates in Laravel 11
In this blog post, we’ll dive into the significant changes introduced to middleware in Laravel 11.
📚 How To Troubleshoot Common Installation Errors In Laravel?
In this article, we are going to review the common Laravel installation errors, as well as their reasons and solutions.
📚 A Complete Guide To Dockerize Laravel, Postgres, Nginx, MailServer, PGAdmin, Adminer, Redis, Npm
Using docker for developing Laravel web-apps will prevent us from a headache of installation and configuration different services.
📚 Mistakes You Should Avoid in Laravel Validations
In Laravel, maintaining clean, organized code is crucial for building scalable and maintainable applications. One powerful tool at our disposal for achieving this is Laravel’s Form Requests.
📚 Unleashing PSR-15 Middlewares in Laravel
While Laravel provides a built-in middleware system, integrating PSR-15 standard middlewares can be a game-changer.
📚 MVC Explained: Making Laravel a Breeze
Today we’re going to break down MVC in a way that’s easy to understand, just like chatting with a friend.
Symfony
📚 Symfony 7.0.7 released
Symfony 7.0.7 has just been released. Here is the list of the most important changes since 7.0.6
📚 Fast-Track to Become A Bad Symfony Developer
Ever wondered what makes a bad Symfony developer? If you’re tired of efficiency and streamlined workflows, this guide is for you. Let’s take the shortcut and discover it together.