Releases: linna/filter
Releases · linna/filter
v0.3.0
New on this version
Added
Linna\Filter\Result
class, abstract, returned byLinna\Filter\Filter->filter()
as anonymous classLinna\Filter\Rules\CustomRule
for declare user validation and sanitization custom rulesLinna\Filter\Rules\Ip
check for valid ipv4 and ipv6 addressLinna\Filter\Rules\IPRange
check if provided ipv4/ipv6 is in CIDR rangeLinna\Filter\Rules\StringLenCompare
new aliasstrlen
- Namespace for tests
Changed
Linna\Filter\Filter->filterOne()
andLinna\Filter\Filter->filterMulti()
merged inLinna\Filter\Filter->filter()
Linna\Filter\Lexer
class improvedLinna\Filter\Rules\Regex
now throw anInvalidArgumentException
if invalid regex is provided
Fixed
v0.2.0
New on this version
Added
- Rule aliases
- New rule and more human readable message system
Linna\Filter->filterOne()
andLinna\Filter->filterMulti()
methods now return a results objectLinna\Filter\Rules\NumberIntervall
check if a number is inside or outside a range with operators ><, <>, >=<, <=Linna\Filter\Rules\NumberCompare
check and compare numbers with operators <, >, >=, <=, =Linna\Filter\Rules\Regex
check if value match a regexLinna\Filter\Rules\StringLenCompare
check length of a string with operators <, >, >=, <=, =, !=Linna\Filter\Rules\Str
sanitize strings (convert data type to string)
Removed
Linna\Filter\Rules\Between
Linna\Filter\Rules\MaxLength
Linna\Filter\Rules\Max
Linna\Filter\Rules\Min
Linna\Filter\Rules\MinLength
v0.1.0
Initial Release
Added
Linna\Filter\Rules\Between
validate numbers, between two valuesLinna\Filter\Rules\Date
validate a dateLinna\Filter\Rules\DateCompare
validate dates with operators <, >, >=, <=, =Linna\Filter\Rules\Email
validate an emailLinna\Filter\Rules\Escape
escape outputLinna\Filter\Rules\Max
validate numbers, lower thanLinna\Filter\Rules\MaxLength
validate strings length, lower thanLinna\Filter\Rules\Min
validate numbers, higher thanLinna\Filter\Rules\MinLength
validate strings length, higher thanLinna\Filter\Rules\Number
sanitize numbers