- fix deprecation notices for PHP 8.4
- add Chinese translations thanks to messikiller
- add
requires
rule to ensure field(s) are present when another field is provided - improve documentation of
required_with
- additional French contributions thanks to zephyx
- add French translations thanks to zephyx
- fix callback strings as error messages (#26 thanks to jakewhiteley
- fix bug in callback binding in Callback rule, not setting scope to the rule instance
- require PHP 8.1+
- update dependencies
- fix missing return types
- add Turkish translations thanks to relliv
- update README to include notes on registering message translations (#22 thanks to xJuvi for reporting)
- add rule to limit the keys in associative array data:
array_can_only_have_keys
- add rule to require all keys be present in associative array data:
array_must_have_keys
- fix bug where nested arrays were being incorrect converted to strings
- support referencing parameters from other rules for the same attribute for error messages (#14)
- add documentation for validating array data (#16)
- add documentation for optional and nullable data
- add additional methods to
DataBag
- add method to
Factory
for loading message resources more easily (suggestion from PR #15)
- fix ints being passed to preg_match in alpha_num and alpha_dash rules #13
- update tests for PHP 8.2 deprecations
- add rules introduced via PR #9 to defaults with thanks to xJuvi
- fix language string bug in EndsWith rule / language files thanks to xJuvi
- add additional string casting to rules where strings are required in function calls
- add explicit cast to string on
Regex
rule #11
- add
mixed
type hint toRule::check
with thanks to DeveloperMarius
- add
starts_with
andends_with
rules with thanks to DeveloperMarius - some additional code clean up
- add notes about contributing
- better handle multiple file uploads when the attribute key has not been defined using dot notation
- add additional notes to readme regarding multiple file uploads and requirement for dot notation
- add additional tests to check
:
handling in rule attributes
- 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