dev-master
9999999-devValidation library for some Spanish codes.
MIT
The Requires
- php >=5.3.3
The Development Requires
validator validation symfony es spain
Validation library for some Spanish codes.
This library provides some validators for common Spanish codes., (*1)
All validators implements a common interface with only one method:, (*2)
/** * Validates the given value * * Will return void if the given value is valid or will throw an * \InvalidArgumentException otherwise * * @param mixed * @throws \InvalidArgumentException */ public function validate($value);
For each validator, a suitable Constraint and ConstraintValidator class is provided, so you can use the Symfony Validator service., (*3)
$validator = \Symfony\Component\Validation::createValidator(); $violations = $validator->validateValue('00000001Z', new \Ajgl\Validator\Es\Constraints\Dni());
If you need to integrate these validators into your Symfony Framework app, you can install the AjglValidatorEsBundle, (*4)
This library is under the MIT license. See the complete license in the LICENSE file., (*5)
This is an ajgarlag initiative., (*6)
Issues and feature requests are tracked in the Github issue tracker., (*7)
Validation library for some Spanish codes.
MIT
validator validation symfony es spain