Skip to content

Releases: awurth/SlimValidation

v5.0.1

02 Dec 17:34
Compare
Choose a tag to compare

Allow Symfony 7

v5.0.0

10 Apr 14:31
Compare
Choose a tag to compare

Complete rewrite

  • Require PHP 8.1 or newer
  • Changed namespace from Awurth\SlimValidation to Awurth\Validator
  • Added support for Respect Validation v2, drop support for v1
  • Removed error groups, use context instead for a similar feature
  • Merged the request, array, object and value methods into a single validate method
  • Made the validator stateless. The validate method now returns a ValidationFailureCollection
  • Added a StatefulValidator to be able to use the Twig extension
  • Renamed Awurth\SlimValidation\ValidatorExtension to Awurth\Validator\Twig\LegacyValidatorExtension
  • Moved validation logic to an Asserter class
  • Added a DataCollectorAsserter to collect all data passing through the validator, not just invalid values, as an instance of ValidatedValueCollection
  • Added ValueReaders to get values from array keys, object properties or request parameters
  • Made all classes final while adding extension points for everything

v3.4.0

17 Sep 14:38
Compare
Choose a tag to compare

Add support for PHP 8, drop support for PHP 7.0