Releases: SonyPradana/validator
Releases · SonyPradana/validator
Patch version 0.8.3
What's Changed
- feat: added set costume error message by @SonyPradana in #34
- chore: bump dependency and formatting by @SonyPradana in #35
Full Changelog: v0.8.2...v0.8.3
Patch version 0.8.2
What's Changed
- build: bump csfixer and formatting by @SonyPradana in #31
- refactor: use generic type collection by @SonyPradana in #32
- refactor; use callable type in parameter instead of
\Callback
by @SonyPradana in #33
Full Changelog: v0.8.1...v0.8.2
Realeas version 0.8
- Support
Wixel/GUMP
ver 2
Realeas version 0.7.0
What's Changed
- Costume validation and filter by @SonyPradana in #25
- Adding raw validation and filter by @SonyPradana in #26
- Pass third params method make() by @SonyPradana in #27
Full Changelog: v0.6.2...v0.7.0
Maintenance Release
What's Changed
- Bug fixing, Fixed adding new exist rule not overwrite exist rule.
- Fix combine exist rule #22 by @SonyPradana in #23
- GitHub static analysis by @SonyPradana in #24
New Contributors
- @SonyPradana made their first contribution in #23
Full Changelog: v0.6.1...v0.6.2
Maintenance Release
[0.6.1] - 2022-03-01
Fixed
- fixed not exist field method
only
always return true.
Full Changelog: v0.6.0...v0.6.1
Realeas version 0.6.0
[0.6.0] - 2022-03-01
Added method to check form submitted validator->submitted().
Added method to check validation and form submitted validator->passed().
Added method to check validation and form submitted validator->fails().
Adding validation from method Validator::make($field, $closure) using param $closure as validpool closuser.
Added method to filter field rule base on field which need to use. validator->only() use specified field, validator->except() inverse of only.
What's Changed
- Submitted check (form post) by @anggerpradana in #21
Full Changelog: v0.5.1...v0.6.0
Maintenance Release
[0.5.1] - 2022-02-18
Added
- Add method to add error message using
__set
.
Fixed
- Fix deprecated warning php 8.0.
What's Changed
- refactor: adding property interface by @anggerpradana in #19
- Expand php version for php 8.0 by @anggerpradana in #20
Full Changelog: v0.5.0...v0.5.1
Realeas version 0.5.0
[0.5.0] - 2022-02-15
Added
- Add filter (rule) condition
where()
, only execute rule filter if condition as true (left side filter). - Add filter (rule) condition
if()
, only execute rule filter if condition as true (right side filter). - Add new filter
filter_
, does't perform anything. This filter also prevent from error when filter rule is empty. - Add static to create new instance
Validator::make()
. - Adding validation rule using callback
Validator->validation($callback)
. - Adding filter rule using callback
Validator->filters($callback)
. - Adding new class (
Validator\Collection::class
) to convert array to smart object. - Adding property to get errors
Validator->erros
and filter outValidation->filters
, it will return asValidator\Collection::class
. - Adding method to costume field error message
Validator::Message()
.
Changed
- Change function name from Valid::equals_field() to
Valid::equalsfield()
Realeas version 0.4.0
[0.4.0] - 2022-01-15
Added
- Add property
not
same result with methodnot()
. - Add validation (rule) condition
where()
, only execute rule validation if condition as true (left side validation). - Add validation (rule) condition
if()
, only execute rule validation if condition as true (right side validation). - Add new validation
validate_
, check field is contain in input field. This validation also prevent from error when validation rule is empty.
Fixed
- Fix method
validOrException()
can't throw Exception. - Prevent error when validation rule is empty, by adding new validation
validate_()
.