New on the blog: "Designed Once, Usable Everywhere: An Investment in PHP's Stand...
The PHP Foundation @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.
https://thephp.foundation/blog/2026/11/03/stdlib-investment/
#PHP #PHP86