Download the PHP package danilopolani/laravel-array-destructuring without Composer
On this page you can find all versions of the php package danilopolani/laravel-array-destructuring. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download danilopolani/laravel-array-destructuring
More information about danilopolani/laravel-array-destructuring
Files in danilopolani/laravel-array-destructuring
Package laravel-array-destructuring
Short Description Powerful array destructuring for Laravel
License MIT
Homepage https://github.com/danilopolani/laravel-array-destructuring
Informations about the package laravel-array-destructuring
Laravel Array Destructuring
Extend Arr
support adding a destructure
method to have a powerful array destruction in Laravel.
Table of Contents
- Installation
- Usage
- Changelog
- Contributing
- Testing
- Security
- Credits
- License
Installation
The package supports Laravel 8.x
and PHP >= 7.4
.
You can install the package via composer:
Thanks to the package auto-discovery feature, it will register itself automatically.
Usage
Note: if a key is not found its value will be
null
. If all the elements inside a group of keys are not found, the returned value will be an empty array[]
.
Basic destructuring for a key only
Destructuring with multiple keys
Destructuring with multiple grouped keys
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Testing
Clone the repository and just run
With Docker (Windows):
With Docker (Linux/OSX):
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Danilo Polani
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.