2017 © Pedro PelĂĄez
 

library validator-es

Validation library for some Spanish codes.

image

ajgl/validator-es

Validation library for some Spanish codes.

  • Tuesday, November 26, 2013
  • by ajgarlag
  • Repository
  • 1 Watchers
  • 1 Stars
  • 123 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

AjglValidatorEs

This library provides some validators for common Spanish codes., (*1)

Available validators

Usage

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);

Integration with Symfony Validator

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());

Symfony Bundle

If you need to integrate these validators into your Symfony Framework app, you can install the AjglValidatorEsBundle, (*4)

License

This library is under the MIT license. See the complete license in the LICENSE file., (*5)

Badges

  • Travis CI: Build Status
  • Poser Latest Stable Version: Latest Stable Version
  • Poser Latest Unstable Version Latest Unstable Version
  • Poser Total Downloads Total Downloads
  • Poser Monthly Downloads Montly Downloads
  • Poser Daily Downloads Daily Downloads
  • Scrutinizer Quality Scrutinizer Quality Score
  • Scrutinizer Code Coverage Code Coverage
  • Bitdeli Popularity Bitdeli Badge
  • SensionLabs Insight Quality SensioLabsInsight
  • VersionEye Dependency Status Dependency Status

About

This is an ajgarlag initiative., (*6)

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*7)

The Versions

26/11 2013

dev-master

9999999-dev

Validation library for some Spanish codes.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

validator validation symfony es spain