PHPackages                             richarddobron/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. richarddobron/ean-utils

ActiveLibrary

richarddobron/ean-utils
=======================

PHP library to generate and validate EAN-8 and EAN-13 barcodes.

0.1.0(12mo ago)04.5kMITPHPPHP ^7.0 || ^8.0CI passing

Since May 20Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/richardDobron/ean-utils)[ Packagist](https://packagist.org/packages/richarddobron/ean-utils)[ RSS](/packages/richarddobron-ean-utils/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

ean-utils
=========

[](#ean-utils)

PHP library to generate and validate `EAN-8` and `EAN-13` barcodes.

📖 Requirements
--------------

[](#-requirements)

PHP 7.0 or higher

📦 Installing
------------

[](#-installing)

```
$ composer require richarddobron/ean-utils
```

⚡️ Usage
--------

[](#️-usage)

### Builder

[](#builder)

```
use dobron\EanUtils\Ean13Generator;
use dobron\EanUtils\Ean8Generator;

$ean13 = new Ean13Generator();

$ean13->generate('1234567', '500'); // 5000012345675
$ean13->generate('1234567'); // 0000012345670

$ean8 = new Ean8Generator();

$ean8->generate('123', '212'); // 21201233
$ean8->generate('123'); // 00001236
```

### Validator

[](#validator)

```
use dobron\EanUtils\EanValidator;

$eanValidator = new EanValidator();

$eanValidator->validate('5000012345675'); // true

$eanValidator->validate('1234567'); // false

$eanValidator->validate('ABCDEFGH'); // false
```

🤝 Contributing
--------------

[](#-contributing)

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

📜 License
---------

[](#-license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance64

Regular maintenance activity

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

363d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ce70053083f807f4416f0bafe680691b66cd14f3c1bdf7b3df51b6f5b5cfdea?d=identicon)[dobron](/maintainers/dobron)

---

Top Contributors

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

---

Tags

barcodeeanean13ean8barcodeeanEAN 8EAN 13eancodeean-utils

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[picqer/php-barcode-generator

An easy to use, non-bloated, barcode generator in PHP. Creates SVG, PNG, JPG and HTML images from the most used 1D barcode standards.

1.8k25.5M88](/packages/picqer-php-barcode-generator)[tecnickcom/tc-lib-barcode

PHP library to generate linear and bidimensional barcodes

2957.1M28](/packages/tecnickcom-tc-lib-barcode)[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[kekos/gs1

GS1 parser and generator for PHP

155.4k](/packages/kekos-gs1)[barcode-bakery/barcode-1d

Generates 1D barcodes from a PHP server to a file or HTML document.

10146.1k1](/packages/barcode-bakery-barcode-1d)[bitgrave/barcode-bundle

provide barcode rendering service into your Symfony2 application.

25444.0k1](/packages/bitgrave-barcode-bundle)

PHPackages © 2026

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