News for hackers. Stuff that matters.
Re:Whats New in PHP 8.2 by jw1224 on Monday April 25, 2022 @12:16PM (#31156963)
Laravel’s “Collections” library [1] solves this, and is a breath of fresh air. Easily one of the best features of the framework (though you can also use it as a separate package, outside of a Laravel app [2]).

It’s simple to use, but extremely powerful. I pretty much always use Collections over native array functions these days.

[1] https://laravel.com/docs/9.x/collections

[2] https://github.com/illuminate/collections

Re:Whats New in PHP 8.2 by user3939382 on Monday April 25, 2022 @12:33PM (#31157220)
Doctrine Collections similarly solves this.