Download the PHP package unknownrori/easyarray without Composer
On this page you can find all versions of the php package unknownrori/easyarray. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download unknownrori/easyarray
More information about unknownrori/easyarray
Files in unknownrori/easyarray
Download unknownrori/easyarray
More information about unknownrori/easyarray
Files in unknownrori/easyarray
Vendor unknownrori
Package easyarray
Short Description A wrapper class that manipulate array easy to read while still lightweight and fast
License MIT
Package easyarray
Short Description A wrapper class that manipulate array easy to read while still lightweight and fast
License MIT
Please rate this library. Is it a good library?
Informations about the package easyarray
Easy Array
Overview
\UnknownRori\EasyArray\EasyArray
is a lightweight helper class that can make your array manipulation logic readable.
Feature
- find
- last
- length
- get
- key
- isNull
- pop
- map
- split
- remove
- push
- merge
- mergeRecursive
- fill
- filter
- reverse
- unique
- exist
- insertKey
- insertVal
- limit
- save
Installation
Composer require unknownrori/easyarray
Usage
Creating new Collection
$array = new EasyArray([1, 2, 3])
Map the collection
$article = new EasyArray([
"article" => "Lorem ipsum",
"slug" => "Lorem",
"timestamp" => date_timestamp_get(date_create()),
]);
$article->map(function ($name) {
return strtoupper($name);
});
$modifiedArticle = $article->getData();
or using helper function
$array = EasyArr([1, 2, 3]);
All versions of easyarray with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package unknownrori/easyarray contains the following files
Loading the files please wait ....