pisc / upperscore
General functions for PHP
Installs: 228
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/pisc/upperscore
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: 5.0.*
README
upperscore
General functions for PHP
Installation
$ composer require pisc/upperscore
How to use:
PHP version >= 5.6
use function pisc\upperscore\arrayFlatten; $flat = arrayFlatten([ 'cow', [ 'bear', ['bunny', 'santa' ], 'rabbit' ]]);
PHP version < 5.6
use pisc\upperscore as u; $flat = u\arrayFlatten([ 'cow', [ 'bear', ['bunny', 'santa' ], 'rabbit' ]]);
Run tests
$ ./phpunit.sh