PHPackages                             celsonery/php-ean-utils - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. celsonery/php-ean-utils

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

celsonery/php-ean-utils
=======================

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

1.3.0(3y ago)1166MITPHPPHP ^8.1

Since Jun 22Pushed 3w ago1 watchersCompare

[ Source](https://github.com/celsonery/php-ean-utils)[ Packagist](https://packagist.org/packages/celsonery/php-ean-utils)[ RSS](/packages/celsonery-php-ean-utils/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (1)Versions (8)Used By (0)

EANs Utility for PHP - by Celso Nery
====================================

[](#eans-utility-for-php---by-celso-nery)

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

[![Maintainer](https://camo.githubusercontent.com/45e1990f156099c483e9b05133871192bcb8358d26633c38d7a989da6a16327c/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d4063656c736f6e6572792d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/celsonery)[![PHP from Packagist](https://camo.githubusercontent.com/3dd420942bb545a292d312d9d1a92b79e48ab1cab06dcb0fab6c7a96448ce84e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f63656c736f6e6572792f7068702d65616e2d7574696c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/celsonery/php-ean-utils)[![Latest Version](https://camo.githubusercontent.com/f39c3c586eb0d35cecaba04d731b7e164c9c634e5e82d48f75ae9eeec6f6c3bb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f63656c736f6e6572792f7068702d65616e2d7574696c732e7376673f7374796c653d666c61742d737175617265)](https://github.com/celsonery/php-ean-utils/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/b9ab64558dfc4b65b2e71d73cc9ff4317f53e1ad808f691cc5ebdbfdc952c02b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f63656c736f6e6572792f7068702d65616e2d7574696c732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/celsonery/php-ean-utils)[![Quality Score](https://camo.githubusercontent.com/4bf36f196d6f71a64e4b572a63cc09c1d757107fed82f01bf52729d52487ff98/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f63656c736f6e6572792f7068702d65616e2d7574696c732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/celsonery/php-ean-utils)[![Total Downloads](https://camo.githubusercontent.com/9220e9c3ce5a94e2ce719f5f8e0dd8a5ddf58ae8d092da04301e03f30d0396e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63656c736f6e6572792f7068702d65616e2d7574696c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ccelsonery/php-ean-utils)

Installation
------------

[](#installation)

This package available by Composer:

```
"celsonery/php-ean-utils": "^1.3"
```

or run

```
composer require celsonery/php-ean-utils
```

How to use
----------

[](#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
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Support
-------

[](#support)

###### Security: If you discover any security related issues, please email  instead of using the issue tracker.

[](#security-if-you-discover-any-security-related-issues-please-email-celsonerygmailcom-instead-of-using-the-issue-tracker)

Thank you

Credits
-------

[](#credits)

- [Celso Nery](https://github.com/celsonery) (Maintainer/Developer)
- [All Contributors](https://github.com/celsonery/php-ean-utils/contributors)

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance62

Regular maintenance activity

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

6

Last Release

1102d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3494ad3c6faeafb657ccf282f2bbef26c0a9f275136c455fe146c720e021151?d=identicon)[Celso Nery](/maintainers/Celso%20Nery)

---

Top Contributors

[![celsonery](https://avatars.githubusercontent.com/u/13930284?v=4)](https://github.com/celsonery "celsonery (20 commits)")

---

Tags

eangtin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/celsonery-php-ean-utils/health.svg)

```
[![Health](https://phpackages.com/badges/celsonery-php-ean-utils/health.svg)](https://phpackages.com/packages/celsonery-php-ean-utils)
```

###  Alternatives

[intervention/validation

Additional validation rules for the Laravel framework

6827.2M20](/packages/intervention-validation)[bitgrave/barcode-bundle

provide barcode rendering service into your Symfony2 application.

24447.2k1](/packages/bitgrave-barcode-bundle)[biblys/isbn

A PHP library to convert and validate ISBNs

57372.0k1](/packages/biblys-isbn)[real-digital/gtin-validator

Real GTIN Validator

17459.2k1](/packages/real-digital-gtin-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
