pragmarx/ia-arr

Laravel Illuminate Agnostic Arr

Package info

github.com/antonioribeiro/ia-arr

pkg:composer/pragmarx/ia-arr

Statistics

Installs: 3 641 704

Dependents: 13

Suggesters: 0

Stars: 54

Open Issues: 1

v7.3.3 2024-10-05 19:56 UTC

Requires

Requires (Dev)

Suggests

Provides

None

Conflicts

None

Replaces

None

MIT 6f4303c25cc1a79a55044ca413e0a0d757628fab

helpersarraylaravelpragmarxarr


README

👁 Latest Stable Version
👁 License
👁 Code Quality
👁 Build
👁 Downloads

👁 Coverage
👁 StyleCI
👁 PHP

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.

Install

Via Composer

$ composer require pragmarx/ia-arr

Usage

use IlluminateAgnostic\Arr\Support\Arr;

$array = ['joe@example.com' => 'Joe', 'jane@localhost' => 'Jane'];

echo Arr::pull($array, 'joe@example.com');

Should return

Joe

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email acr@antoniocarlosribeiro.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.