EAN-8 barcode in PHP: 8 digit input, check digit, code example and SVG output
Your support helps keep this website running. Please consider supporting this project. SPONSORDONATE
- Nicola Asuni
EAN-8 exists for packages with no room for the full thirteen digits. The number is allocated separately rather than derived from the EAN-13 of the same product, so the two are unrelated. Unlike EAN-13 and the UPC pair, EAN-8 takes no add-on symbol.
Type Token
Item
Value
Type token
EAN8
Enum case
BarcodeType::EAN8
Family
Linear
Standard
ISO/IEC 15420, GS1 General Specifications
Class
\Com\Tecnick\Barcode\Type\Linear\EanEight
Input
Item
Value
Character set
digits
Length
7 digits, or 8 with a valid check digit
Check
modulo 10, appended when the payload is 7 digits and verified when it is 8