newridetech / ean13
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (1.0.1) of this package.
1.0.1
2018-02-17 18:06 UTC
Requires (Dev)
- phpunit/phpunit: ~7
- ronanguilloux/isocodes: ^2.1
This package is not auto-updated.
Last update: 2023-09-15 13:03:35 UTC
README
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