m1guelpf/native-collection

Adding Collection functions to the PHP array scalar type

dev-master 2018-09-12 08:59 UTC

This package is auto-updated.

Last update: 2024-10-17 06:23:48 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

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.