Package Data | |
---|---|
Maintainer Username: | AntonioCarlosRibeiro |
Maintainer Contact: | acr@antoniocarlosribeiro.com (Antonio Carlos Ribeiro) |
Package Create Date: | 2018-01-30 |
Package Last Update: | 2024-10-05 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:07:04 |
Package Statistics | |
---|---|
Total Downloads: | 3,078,432 |
Monthly Downloads: | 36,070 |
Daily Downloads: | 327 |
Total Stars: | 54 |
Total Watchers: | 4 |
Total Forks: | 21 |
Total Open Issues: | 0 |
This package is an extraction of the Laravel's Illuminate\Support\Arr class, including all helpers, repackaged to be agnostic and available to any PHP project.
It has its own namespace (IlluminateAgnostic\Arr), so you can use it even on Laravel apps without risking a namespace conflict.
You can find some documentation on the available helpers here: https://laravel.com/docs/5.5/helpers.
Via Composer
$ composer require pragmarx/ia-arr
use IlluminateAgnostic\Arr\Support\Arr;
$array = ['joe@example.com' => 'Joe', 'jane@localhost' => 'Jane'];
echo Arr::pull($array, 'joe@example.com');
Should return
Joe
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email acr@antoniocarlosribeiro.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.