New on the blog: "Designed Once, Usable Everywhere: An Investment in PHP's Stand...

@thephpf@phpc.social

New on the blog: "Designed Once, Usable Everywhere: An Investment in PHP's Standard Library" by @timwolla
PHP 8.6 adds a SortDirection enum and a Time\Duration class. Both are small on purpose, and both replace dozens of incompatible userland versions. There are 150+ SortDirection enums on GitHub alone.
The post covers why getting stdlib design right matters, how namespaces give old APIs a second chance, and what comes next with Time\Instant.
thephp.foundation/blog/2026/11
#PHP #PHP86