Skip to content

Realeas version 0.5.0

Compare
Choose a tag to compare
@SonyPradana SonyPradana released this 15 Feb 02:27
· 47 commits to main since this release

[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 out Validation->filters, it will return as Validator\Collection::class.
  • Adding method to costume field error message Validator::Message().

Changed

  • Change function name from Valid::equals_field() to Valid::equalsfield()