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

This package is auto-updated.

Last update: 2024-04-30 00:39:57 UTC


README

A package utility to work with EANs/GTINs, for validate and generate fake EANs

Maintainer PHP from Packagist Latest Version Software License Build Quality Score Total Downloads

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

License

The MIT License (MIT). Please see License File for more information.