PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Celso   PHP EAN Utils   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP EAN Utils
Validate EAN code strings
Author: By
Last change:
Date: 22 days ago
Size: 2,078 bytes
 

Contents

Class file image Download

EANs Utility for PHP - by Celso Nery

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.