Download the PHP package crea-mukai/laravel-list-value without Composer
On this page you can find all versions of the php package crea-mukai/laravel-list-value. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download crea-mukai/laravel-list-value
More information about crea-mukai/laravel-list-value
Files in crea-mukai/laravel-list-value
Download crea-mukai/laravel-list-value
More information about crea-mukai/laravel-list-value
Files in crea-mukai/laravel-list-value
Vendor crea-mukai
Package laravel-list-value
Short Description laravel Array value service
License MIT
Package laravel-list-value
Short Description laravel Array value service
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-list-value
laravel-list-value
laravel 5.5
Library for manipulating arrays in Laravel
Setting
- composer install.
- php artisan vendor:publish
- config/app.php edit.
`
How to use
Make array values
- copy App\Model\ListValue\Foo to
- Foo::LIST_VALUES change
`
Methods
Method | Content |
---|---|
\ListValueService::list($name) | Get list value. |
\ListValueService::flipList($name) | Get value => key list. |
\ListValueService::keys($name) | Get keys array. |
\ListValueService::valueFromKey($name, $key) | Exchange key to value. |
\ListValueService::keyFromValue($name, $value) | Exchange value to key. |
\ListValueService::firstKey($name) | Get first key. |
\ListValueService::lastKey($name) | Get last key. |
\ListValueService::firstValue($name) | Get first value. |
\ListValueService::lastValue($name) | Get last value. |
All versions of laravel-list-value with dependencies
PHP Build Version
Package Version
The package crea-mukai/laravel-list-value contains the following files
Loading the files please wait ....