Skip to content

Releases: affinity4/validate

v0.0.4

19 May 13:41
Compare
Choose a tag to compare

Added __validate__regex_patterns array property to store all validation regexes to make adding them easier
Added __validate__validation_error_messages array property to store all validation error messages to make it easier to keep them unified
Added after.string:pascalcase|camelcaps|studlycaps validator

v0.0.3

19 May 00:17
Compare
Choose a tag to compare
  • Added type(numeric) validator for is_numeric validation
  • Added type(string:alpha) validator for ctype_alpha validation (alphabet characters only)
  • Added match($pattern) validator for regex matching (preg_match)
  • Added replace($pattern, $replace) validator to allow simple regex replace functionality (preg_replace). NOTE: Replacement can be string only. No arrays
  • Added type(string:kebabcase), type(string:snakecase), type(string:cobolcase), type(string:upperkebabcase), type(string:constantcase), type(string:macrocase) and type(string:uppersnakecase)

v0.0.2

17 May 21:18
Compare
Choose a tag to compare
  1. Added type(float) validation
  2. Added ValidationErrors class to wrap getValidationErrors() array for fluent API to access errors

v0.0.1

17 May 09:01
Compare
Choose a tag to compare

Initial functionality