PHP 8.6 SortDirection: cleaner, safer sorting APIs for modern PHP
PHP 8.6 introduces SortDirection, a small but useful step toward clearer sorting APIs. Here’s what it changes, why it matters, and how to use it in practice.
This site uses cookies and gives you control over what you want to activate. Read the Privacy Policy
Managing Director @ SensioLabs Germany
I am the Managing Director of SensioLabs Germany, a Symfony Core Team Member, and an open-source enthusiast. I have been working in the PHP ecosystem for 15 years and actively contribute to Symfony. I share my knowledge through blog posts on sensiolabs.com. While others read the news, I review pull requests.
PHP 8.6 introduces SortDirection, a small but useful step toward clearer sorting APIs. Here’s what it changes, why it matters, and how to use it in practice.
PHP 8.5 introduces a powerful new URI extension that modernizes URL handling. With support for both RFC 3986 and WHATWG standards, the new Uri class provides immutable objects, fluent interfaces, and proper validation - addressing all the limitations of the legacy parse_url() function. This guide shows practical before/after examples and explains when to use each standard.
PHP 8.5 will be released in November 2025 and brings several useful new features and improvements. This version focuses on developer experience enhancements, new utility functions, and better debugging capabilities.
Discover when to rewrite legacy PHP applications from scratch versus incrementally refactoring them. Learn practical strategies for modernizing outdated codebases while maintaining business continuity.
Learn how to enhance type safety in Symfony and Doctrine by using dedicated ID classes like BookId and UserId instead of raw UUIDs. This approach prevents identifier mix-ups, improves code clarity, and ensures better integration with Symfony Messenger and repository methods. Explore practical examples and best practices for implementing type-safe identifiers in your Symfony applications.
Discover PIE, the new PHP Installer for Extensions, a modern tool that simplifies managing PHP extensions with a Composer-like workflow. Say goodbye to PECL complexities and streamline your development process with PIE.