Download the PHP package php-etl/string-expression-language without Composer
On this page you can find all versions of the php package php-etl/string-expression-language. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download php-etl/string-expression-language
More information about php-etl/string-expression-language
Files in php-etl/string-expression-language
Download php-etl/string-expression-language
More information about php-etl/string-expression-language
Files in php-etl/string-expression-language
Vendor php-etl
Package string-expression-language
Short Description This library implements functions for manipulating string data in ExpressionLanguage
License MIT
Package string-expression-language
Short Description This library implements functions for manipulating string data in ExpressionLanguage
License MIT
Please rate this library. Is it a good library?
Informations about the package string-expression-language
String Expression Language
This package extends the ExpressionLanguage component of Symfony to compile and evaluate arrays with custom functions.
Installation
Usage
You can use these expressions in your configuration files as in the following example :
List of available functions
Generic functions
format(string $format, mixed ...$values) : string
=> Return a formatted stringtrim(string $string, string $characters = " \n\r\t\v\x00") : string
=> Strip whitespace (or other characters) from the beginning and end of a stringcapitalize(string $string) : string
=> Make a string's first character uppercasetoLowerCase(string $string) : string
=> Make a string lowercasesearch(string $string, int $offset, ?int $length = null) : string
=> Return part of a stringtoUpperCase(string $string) : string
=> Make a string uppercasefileName(string $string) : string
=> Returns information about a file pathdateTime(string $string) : string
=> Returns new DateTimeImmutable object formatted according to the specified formatformatDate(string $string) : string
=> Returns date formatted according to given formatindexOf(string $haystack, string $needle, int $offset) : int|false
=> Find the position of the first occurrence of a substring in a stringtruncate(string $string, int $limit) : string
=> Truncates the string and adds "…" at the end, if the string is longer than the limit
All versions of string-expression-language with dependencies
PHP Build Version
Package Version
The package php-etl/string-expression-language contains the following files
Loading the files please wait ....