runcom / ean-validation-bundle
Validator for the International Article Number (EAN)
Package info
github.com/runcom/RuncomEanValidationBundle
Type:symfony-bundle
pkg:composer/runcom/ean-validation-bundle
v0.1.10
2014-05-30 13:05 UTC
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: 2026-03-21 04:36:00 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.