- remove unnecessary docblocks
- add
length
rule for testing strings of exact length (handles UTF8 strings)
- fix PHP 8.0 compatibility calling PHP 8.1 function
array_is_list()
without a fallback
- add German translation with thanks to xJuvi
- add
any_of
andsometimes
rules - remove calls to deprecated mock methods
- move some test classes to
Rules
namespace
- add
rejected
to readme (previously missed)
- add
rejected
rule - add
number
as alias ofinteger
rule
- fix strict type check on
Date
rule where value is sometimes null
- some additional cleanup from code inspections
- add
Exists
andUnique
database rules (uses DBAL)
- add readme contents based on rakit/validation readme
- add setting validation language on Validation
- clean up imports
- rename
In
,NotIn
to usevalues()
as the method to set values
- add
AttributeBag
andRuleBag
- rename
ValidatorTest
toFactoryTest
- refactor more internals
- split out tests from
FactoryTest
into smaller groups
- add
InputBag
for holding all input items - add support for callables in
Helper::arrayGet
- rename more methods
- rename
primaryAttribute
toparent
- remove
setAliases
,setAlias
is good enough - remove
otherAttributes
from attribute, not used anywhere
- add
phone
,uuid
,prohibited
,prohibited_if
,prohibited_unless
,string
, andfloat
rules - add
matches
as alias ofregex
- add
MimeTypeGuesser
interface to allow injecting alternative guessers in rules - add helpers to
In
andNotIn
for building rules - add initial language translation support
- allow commas in parameters on rules e.g. in, not_in etc.
- change Rule
key
toname
- move
Interfaces
toContracts
- move
Traits
toBehaviours
- refactor more internals
- remove the humanize keys and override checks - not needed
- remove unused methods
- add support for aliases on rules and drop pre-process of input data
- add support for rules as array of rule -> value as well as [ rule:value ]
- correct usage of assertEquals in tests
- initial commit porting code from https://github.com/rakit/validation
- clean up some internals
- make use of PHP8 features
- rename some classes