runcom/ean-validation-bundle
A Symfony bundle for validating EAN and GTIN barcodes. It provides validation constraints and services to check product codes such as EAN-8, EAN-13, UPC, and GTIN, helping ensure barcode data is correctly formatted and checksum-valid in your applications.
Consider it when:
RuncomEanValidationBundle), and it will not drop into a Laravel app without a wrapper or a fork.Validator constraint integration — i.e., you want @Ean-style annotations tied into form and entity validation — and would otherwise hand-roll that glue.Look elsewhere (or just build it) when:
To executives: A small, single-purpose library for checking that product barcodes (EANs) are structurally valid before they enter our systems. It reduces a class of downstream data errors — failed marketplace listings, mis-scans, reconciliation noise — at near-zero implementation cost. Two caveats set expectations: it's licensed GPL-3.0, which requires legal review before use in any commercial product, and it's a low-adoption, single-maintainer project, so we should assume we'd own it if we adopt it. Recommendation is typically to replicate the ~30-line checksum in-house rather than take the dependency.
To engineering: It's a Symfony bundle wrapping EAN check-digit validation, with Validator constraint integration. For a Symfony codebase it's a same-day integration for form/entity-level validation. For Laravel it's not directly usable — you'd write a validation rule and a service provider, at which point you've written more code than the algorithm itself. Given the license and the package's maturity, the honest engineering case is: read it as a reference implementation, then implement the check digit internally with unit tests and a documented source. That gives us the behavior with none of the licensing, maintenance, or framework-coupling risk.
How can I help you explore Laravel packages today?