runcom/ean-validation-bundle

Validator for the International Article Number (EAN)

Installs: 8 484

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 2

Forks: 2

Open Issues: 1

Type:symfony-bundle

pkg:composer/runcom/ean-validation-bundle

v0.1.10 2014-05-30 13:05 UTC

This package is not auto-updated.

Last update: 2025-10-04 02:34:45 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.