futape / array-utility
A library of array utilities
Installs: 21
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/futape/array-utility
Requires
- php: ~7.2.0
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^8.4
This package is auto-updated.
Last update: 2025-09-29 02:42:53 UTC
README
This library offers a set of array utilities.
Utility functions are implemented as static functions in an abstract class, which is never expected to be instantiated.
Install
composer require futape/array-utility
Usage
use Futape\Utility\ArrayUtility\Arrays; print_r( Arrays::flatten( [ 'foo', [ 'bar' ] ] ) ); // ["foo", "bar"]
Testing
The library is tested by unit tests using PHP Unit.
To execute the tests, install the composer dependencies (including the dev-dependencies), switch into the tests
directory and run the following command:
../vendor/bin/phpunit