dhii / validation-abstract
Common abstract functionality for validation.
Installs: 5 474
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: ^5.3 | ^7.0
- dhii/validation-interface: ^0.2
Requires (Dev)
- codeclimate/php-test-reporter: <=0.3.2
- dhii/php-cs-fixer-config: dev-php-5.3
- dhii/stringable-interface: ^0.1
- phpunit/phpunit: ^4.8
- ptrofimov/xpmock: ^1.1
Suggests
- dhii/i18n-helper-base: For string internationalization
- dhii/iterator-helper-base: For implementations of iterable-related helper functionality
- dhii/normalization-helper-base: For simple types normalization
- dhii/stringable-interface: To be able to pass stringable objects instead of strings
- dhii/validation-interface: Needed to be able to create exceptions that are expected to be thrown
This package is auto-updated.
Last update: 2024-12-07 03:51:28 UTC
README
Common abstract functionality for validation.
Traits
ValidateCapableTrait
- Functionality for validation. Throws aValidationFailedExceptionInterface
if validation errors are detected.IsValidCapableTrait
- Determines whether a subject is valid in a boolean way.GetValidationErrorsCapableCompositeTrait
- Uses a list of child validators to produce a list of errors.ChildValidatorsAwareTrait
- Awareness of child validators.ValidatorAwareTrait
- Awareness of a validator.SpecAwareTrait
- Awareness of a validation specification. Useful for validators geared to validate against a spec.ValidationSubjectAwareTrait
- Awareness of a validation subject, i.e. what is being validated.ValidationErrorsAwareTrait
- Awareness of a list of validation errors, i.e. reasons for validation failure.