m1guelpf / native-collection
Adding Collection functions to the PHP array scalar type
Fund package maintenance!
m1guelpf
Requires
- php: ^7.1
- tightenco/collect: ^5.7
Requires (Dev)
- larapack/dd: ^1.0
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-10-17 06:23:48 UTC
README
WARNING: You'll need to install this extension for this package to work
Installation
You can install the package via composer:
composer require m1guelpf/native-collection
Usage
['never-gonna-give-you' => 'up', 'never-gonna-let-you' => 'down']->each(function($lyric) { play($lyric) })->reverse(); // returns array
PHP5
If you're using PHP5, you'll need to assign the array to a variable first:
$temporary = ['never-gonna-give-you' => 'up', 'never-gonna-let-you' => 'down'] $temporary->each(function($lyric) { play($lyric) })->reverse(); // returns array
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email soy@miguelpiedrafita.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.