santaklouse / php-array-utils
Mix of illuminate/Support/Arr and Kohana's array helpers including chaining.
Installs: 6
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/santaklouse/php-array-utils
Requires
- php: ^8.0
This package is auto-updated.
Last update: 2025-12-29 03:34:38 UTC
README
Mix of illuminate/Support/Arr and Kohana's array helpers including chaining.
How to use
- Installation
$ composer require santaklouse/php-array-utils:dev-main
- Usage
use ArrayUtils\Arr;
Arr::chain([['id' => 1], ['id' => 2], ['id' => 3])
->except(1)
->pluck('id')
->map(fn ($n) => pow($n, 2))
->value();
// === [1, 9]