dhii / validation-base
Base concrete functionality for validation.
Installs: 5 266
Dependents: 9
Suggesters: 1
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: ^5.4 | ^7.0
- dhii/exception: ^0.1-alpha4
- dhii/i18n-helper-base: ^0.1
- dhii/iterator-helper-base: ^0.1
- dhii/normalization-helper-base: ^0.1
- dhii/validation-abstract: ^0.2
- dhii/validation-interface: ^0.2-alpha2
Requires (Dev)
- codeclimate/php-test-reporter: <=0.3.2
- dhii/php-cs-fixer-config: dev-php-5.3
- phpunit/phpunit: ^4.8
- ptrofimov/xpmock: ^1.1
This package is auto-updated.
Last update: 2024-10-07 02:45:59 UTC
README
Base concrete functionality for validation.
Details
This package defines concrete exceptions, and implements their factories in a validator specialization. It also provides a base for composite validators. All this allows quick creation of validators compliant with the Dhii validation standard.
Classes
AbstractValidatorBase
- The base class for validators that perform a single validation.AbstractCompositeValidatorBase
- The base class for validators that delegate to one or more iterators.ValidationException
- A concrete exception related to validation or a validator.ValidationFailedException
- A concrete exception that signals validation failure, and exposes aspects of the validation.ValidatorTrait
- A group of traits commonly used for validation.CreateValidationExceptionCapableTrait
- Validation exception factory.CreateValidationFailedExceptionCapableTrait
- Validation failed exception factory.