pragmarx/ia-arr

Laravel Illuminate Agnostic Arr
3,709,001 54
Install
composer require pragmarx/ia-arr
Latest Version:v7.3.3
PHP:>=7.0
License:MIT
Last Updated:Oct 5, 2024
Links: GitHub  ·  Packagist
Maintainer: AntonioCarlosRibeiro

IlluminateAgnostic \ Arr

 

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.

Related Packages

pragmarx/ia-collection

Laravel Illuminate Agnostic Collection

3,514,226 46
pragmarx/ia-str

Laravel Illuminate Agnostic Str

3,608,612 52
seffeng/arr-helper

PHP extension array helper

1,998 0
mojopollo/laravel-helpers

Mojo's Laravel Helpers: A suite of various helpers for use in Laravel 5.0 / 5.1...

561 0
lab1353/helpy

Helpers class for Laravel 5

17 1