celsonery / php-ean-utils
A package utility to work with EANs/GTINs, for validate and generate fake EANs
1.3.0
2023-06-27 19:14 UTC
Requires
- php: ^8.1
Requires (Dev)
- phpunit/phpunit: ^10.2
README
A package utility to work with EANs/GTINs, for validate and generate fake EANs
Installation
This package available by Composer:
"celsonery/php-ean-utils": "^1.3"
or run
composer require celsonery/php-ean-utils
How to use
In your class import this trait
use CelsoNery\EanUtils\Services\Traits\EanUtil; class YourClassName { use EanUtil; public function yourMethod() { if ($this->isValid("7898114289779")) { // Do something } } }
Contributing
Please see CONTRIBUTING for details.
Support
Security: If you discover any security related issues, please email celso.nery@gmail.com instead of using the issue tracker.
Thank you
Credits
- Celso Nery (Maintainer/Developer)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.