Arrays Component is a PHP library that provides a fluent, object-oriented interface for working with arrays, allowing you to chain multiple arrays operations together using a more readable syntax compared to traditional PHP arrays functions.
use Atomastic\Arrays\Arrays;
// Using public method __construct()
$arrays = new Arrays();
// Using public static method create()
$arrays = Arrays::create();
// Using global helper function arrays() alias to Arrays::create()
$arrays = arrays();
The first version of the library have just been released with more than 50 methods to manage arrays. Released under an MIT license. More information at https://github.com/atomastic/arrays