src
1 year ago
stubs
4 years ago
.styleci.yml
4 years ago
CHANGELOG.md
4 years ago
CODE_OF_CONDUCT.md
4 years ago
CONTRIBUTING.md
4 years ago
ISSUE_TEMPLATE.md
4 years ago
LICENSE.md
4 years ago
PULL_REQUEST_TEMPLATE.md
4 years ago
README.md
4 years ago
composer.json
1 year ago
phpunit.xml
4 years ago
upgrade.sh
4 years ago
README.md
74 lines
| 1 | # IlluminateAgnostic \ Arr |
| 2 | |
| 3 | <p align="center"> |
| 4 | <a href="https://packagist.org/packages/pragmarx/ia-arr"><img alt="Latest Stable Version" src="https://img.shields.io/packagist/v/pragmarx/ia-arr.svg?style=flat-square"></a> |
| 5 | <a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"></a> |
| 6 | <a href="https://scrutinizer-ci.com/g/antonioribeiro/ia-arr/?branch=master"><img alt="Code Quality" src="https://img.shields.io/scrutinizer/g/antonioribeiro/ia-arr.svg?style=flat-square"></a> |
| 7 | <a href="https://travis-ci.org/antonioribeiro/ia-arr"><img alt="Build" src="https://img.shields.io/travis/antonioribeiro/ia-arr.svg?style=flat-square"></a> |
| 8 | <a href="https://packagist.org/packages/pragmarx/ia-arr"><img alt="Downloads" src="https://img.shields.io/packagist/dt/pragmarx/ia-arr.svg?style=flat-square"></a> |
| 9 | </p> |
| 10 | <p align="center"> |
| 11 | <a href="https://scrutinizer-ci.com/g/antonioribeiro/ia-arr/?branch=master"><img alt="Coverage" src="https://img.shields.io/scrutinizer/coverage/g/antonioribeiro/ia-arr.svg?style=flat-square"></a> |
| 12 | <a href="https://styleci.io/repos/119604199"><img alt="StyleCI" src="https://styleci.io/repos/119604199/shield"></a> |
| 13 | <!-- <a href="https://insight.sensiolabs.com/projects/156fbef1-b03f-4fca-ba97-57874b7a35bf"><img alt="SensioLabsInsight" src="https://img.shields.io/sensiolabs/i/156fbef1-b03f-4fca-ba97-57874b7a35bf.svg?style=flat-square"></a> --> |
| 14 | <a href="https://travis-ci.org/antonioribeiro/ia-arr"><img alt="PHP" src="https://img.shields.io/badge/PHP-7.0%20--%207.3-brightgreen.svg?style=flat-square"></a> |
| 15 | </p> |
| 16 | |
| 17 | This package is an extraction of the [](https://github.com/laravel/framework/blob/5.5/src/Illuminate/Support/Arr.phpLaravel's Illuminate\Support\Arr](https://github.com/laravel/framework/blob/5.5/src/Illuminate/Support/Arr.php](https://github.com/laravel/framework/blob/5.5/src/Illuminate/Support/Arr.php) class, including all helpers, repackaged to be agnostic and available to any PHP project. |
| 18 | |
| 19 | It has its own namespace **(IlluminateAgnostic\Arr)**, so you can use it even on Laravel apps without risking a namespace conflict. |
| 20 | |
| 21 | You can find some documentation on the available helpers here: https://laravel.com/docs/5.5/helpers. |
| 22 | |
| 23 | ## Install |
| 24 | |
| 25 | Via Composer |
| 26 | |
| 27 | ``` bash |
| 28 | $ composer require pragmarx/ia-arr |
| 29 | ``` |
| 30 | |
| 31 | ## Usage |
| 32 | |
| 33 | ``` php |
| 34 | use IlluminateAgnostic\Arr\Support\Arr; |
| 35 | |
| 36 | $array = ['joe@example.com' => 'Joe', 'jane@localhost' => 'Jane']; |
| 37 | |
| 38 | echo Arr::pull($array, 'joe@example.com'); |
| 39 | ``` |
| 40 | |
| 41 | Should return |
| 42 | |
| 43 | ``` |
| 44 | Joe |
| 45 | ``` |
| 46 | |
| 47 | ## Change log |
| 48 | |
| 49 | Please see [](CHANGELOG.mdCHANGELOG](CHANGELOG.md](CHANGELOG.md) for more information on what has changed recently. |
| 50 | |
| 51 | ## Testing |
| 52 | |
| 53 | ``` bash |
| 54 | $ composer test |
| 55 | ``` |
| 56 | |
| 57 | ## Contributing |
| 58 | |
| 59 | Please see [](CONTRIBUTING.mdCONTRIBUTING](CONTRIBUTING.md](CONTRIBUTING.md) and [](CODE_OF_CONDUCT.mdCODE_OF_CONDUCT](CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for details. |
| 60 | |
| 61 | ## Security |
| 62 | |
| 63 | If you discover any security related issues, please email acr@antoniocarlosribeiro.com instead of using the issue tracker. |
| 64 | |
| 65 | ## Credits |
| 66 | |
| 67 | - This package is an extraction of The Laravel Framework, created by [](https://twitter.com/taylorotwellTaylor Otwell](https://twitter.com/taylorotwell](https://twitter.com/taylorotwell) |
| 68 | - Package creator [](https://twitter.com/iantonioribeiroAntonio Carlos Ribeiro](https://twitter.com/iantonioribeiro](https://twitter.com/iantonioribeiro) |
| 69 | - [](https://github.com/antonioribeiro/ia-arr/graphs/contributorsContributors](https://github.com/antonioribeiro/ia-arr/graphs/contributors](https://github.com/antonioribeiro/ia-arr/graphs/contributors) |
| 70 | |
| 71 | ## License |
| 72 | |
| 73 | The MIT License (MIT). Please see [](LICENSE.mdLicense File](LICENSE.md](LICENSE.md) for more information. |
| 74 |