Download the PHP package php-etl/array-expression-language without Composer
On this page you can find all versions of the php package php-etl/array-expression-language. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download php-etl/array-expression-language
More information about php-etl/array-expression-language
Files in php-etl/array-expression-language
Download php-etl/array-expression-language
More information about php-etl/array-expression-language
Files in php-etl/array-expression-language
Vendor php-etl
Package array-expression-language
Short Description This library implements functions for manipulating array data in ExpressionLanguage
License MIT
Package array-expression-language
Short Description This library implements functions for manipulating array data in ExpressionLanguage
License MIT
Please rate this library. Is it a good library?
Informations about the package array-expression-language
Array Expression Language
This package extends the ExpressionLanguage Symfony component to compile and evaluate arrays and iterables with custom functions.
Documentation
Installation
Usage
You can use these expressions in your configuration files as in the following example :
List of available functions
Generic functions
firstKey(array $array) : int|string|null
lastKey(array $array) : int|string|null
keyExists(string|int $key, array $array) : bool
merge(array ...$arrays) : array
count(Countable|array $value) : int
combine(array $keys, array $values) : array
iterableToArray(Traversable $iterator, bool $use_keys = true) : array
map(callable $callback, iterable $source) : iterable
reduce(callable $callback, iterable $source) : string
list(int $length, mixed $value) : iterable
arrayFilter(array $array, ?callable $callback = null) : array
mapValues(array $input, iterable $values) : array
Functions that can be used with reduce
join(string $separator) : callable
Functions that can be used with map
extraxctData(string $path) : callable
Functions that can be used with arrayFilter
Any function can be used with this method as long as it returns true or false.
All versions of array-expression-language with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
symfony/expression-language Version ^6.0
symfony/property-access Version ^6.0
symfony/expression-language Version ^6.0
symfony/property-access Version ^6.0
The package php-etl/array-expression-language contains the following files
Loading the files please wait ....