runcom / ean-validation-bundle
Validator for the International Article Number (EAN)
Installs: 8 483
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 2
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.3.3
- symfony/framework-bundle: ~2.3
- symfony/validator: ~2.3
Requires (Dev)
- phpunit/phpunit: @stable
This package is not auto-updated.
Last update: 2024-11-01 22:12:51 UTC
README
This bundle provides validation constraints for EAN8 and EAN13 with annotations.
Installation
{ "require": { "runcom/ean-validation-bundle": "~0.1" } }
register the bundle in your AppKernel.php
$bundles[] = new Runcom\EanValidationBundle\RuncomEanValidationBundle();
Usage
use Runcom\EanValidationBundle\Validator\Constraints\Ean; // ... /** * @Ean */
Or just initialize new Ean()
in your forms.