Skip to content
forked from newridetech/ean13

EAN13 code and check digit calculator.

License

Notifications You must be signed in to change notification settings

rodrigotxt/ean13

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ean13

This package provides few functions that calculate EAN13 digits and checksum digit. It does not generate barcode images (and it will stay that way). You can use this package to generate barcode image using calculated value.

It uses https://github.com/ronanguilloux/IsoCodes to validate generated codes. checkdigit function was taken from here: https://edmondscommerce.github.io/php/barcode/ean13-barcode-check-digit-with-php.html

I hope this package helps you.

generate code

use function Newride\EAN13\create;

create('123'); // 0000000001236

generate check digit only

use function Newride\EAN13\checkdigit;

checkdigit('123'); // 6

About

EAN13 code and check digit calculator.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%