Dev Tools · 1h ago
PHP 8.5 Pipe Operator Gets Laravel-Flavored Toolkit from Spatie
Spatie released Piper, a library that ports Laravel's array and string helpers to standalone functions for PHP 8.5's pipe operator. Piper requires PHP 8.5 and uses higher-order functions to enable top-to-bottom data transformations. The library is not a Collections replacement but offers advantages in non-Laravel contexts and when working with raw PHP arrays.
Meridian48 take
Piper addresses a real friction point in PHP's standard library, but its value is limited to developers already committed to the pipe operator pattern.
Read the full reporting
PHP 8.5's Pipe Operator vs Laravel Collections: Where Piper Fits (And Where It Doesn't) →
DEV Community
php-8.5laravel