Download the PHP package dsheiko/extras without Composer
On this page you can find all versions of the php package dsheiko/extras. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package extras
Dsheiko\Extras
Collection of chainable high-order functions to abstract and manipulate PHP types. The library extends PHP types with JavaScript and Underscore.js methods
The packages takes its name from
Array Extras
referring to the array methods added in ES5 (JavaScript) to abstract generic array manipulation logic
Installation
Require as a composer dependency:
Highlights
- Fixing PHP:
- Naming convention: all methods are
camelCase
styles vs PHP built-in functions inlower_case
- Consistent parameter order (
Chain::chain($target)->method(...$options)
or<Type>::method($target, ...$options)
) - Methods are chainable
- Data structure
PlainObject
similar to JavaScript plain object - Manipulation target (value) can always be as reference as well as type literal
- Naming convention: all methods are
- Familiar syntax: JavaScript methods, in addition methods of Underscore.js/Lodash
- Performance: package relies on PHP native methods; no
foreach
where a built-in specific function can be used
Sets
- Arrays
- Collections
- Functions
- Strings
- Numbers
- Booleans
- Plain Object
- Any
- Chaining
- Utilities
Download
Overview
Examples
None-reference target
Chaining methods
Accessing methods directly
Plain object
All versions of extras with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
The package dsheiko/extras contains the following files
Loading the files please wait ....