Releases: particle-php/Filter
Releases · particle-php/Filter
v1.5.2
v1.5.1
v1.5.0
v1.4.1
v1.4.0
In this release, two new filter rules have been added:
cut($start, $length)
: which will cut the given key to the given start/length. (Thank you @jhuet)slug($field)
: which will create a slug of the current field, or the given field. (Thank you @jhuet)
Also, code optimizations have been done by @localheinz. Thank you too!
v1.3.0
v1.2.0
In this release:
- The main filter algorithm is updated, which allows unset keys to be set by the filter if wanted
- A
defaults($defaultValue)
rule has been added to provide a default value if the key was not set - The
callback($callable, $allowNotSet)
now has a second parameter to also provide a value if the key was not set - A second parameter
$filterData
in the callable of thecallback()
filter rule is provided containing all data which is being filtered