PHPackages                             consultora-grada/ean13-validator - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. consultora-grada/ean13-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

consultora-grada/ean13-validator
================================

Validates ean13 check digit

1.0.3(5y ago)0141MITPHPPHP ^7.3|^8.0

Since Mar 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/consultora-grada/ean13-validator)[ Packagist](https://packagist.org/packages/consultora-grada/ean13-validator)[ Docs](https://github.com/consultora-grada/ean13-validator)[ Fund](https://grada.com.ar)[ RSS](/packages/consultora-grada-ean13-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Validates ean13 check digit
===========================

[](#validates-ean13-check-digit)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a0b8611123f4f828e343f19bd3824d36139782cff454d451eac3a1aa56111aa8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6e73756c746f72612d67726164612f65616e31332d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/consultora-grada/ean13-validator)[![GitHub Tests Action Status](https://camo.githubusercontent.com/7b91e0cb52bf1ad0fc8cd8fd58ea1978eb6d88e7b78c8be184f7058cc47fb268/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f636f6e73756c746f72612d67726164612f65616e31332d76616c696461746f722f54657374733f6c6162656c3d7465737473)](https://github.com/consultora-grada/ean13-validator/actions?query=workflow%3ATests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/ad0dc8e1011c93de135b54ef6bc37ee02fa8177e98de8d6eda303c0350c1ea7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e73756c746f72612d67726164612f65616e31332d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/consultora-grada/ean13-validator)

This package validates EAN13 barcode check digit.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/16f51223e6f31110275047996feff463d567c890f5c94a36c6187015b7cbce41/68747470733a2f2f7777772e67726164612e636f6d2e61722f77702d636f6e74656e742f75706c6f6164732f323032302f30362f6c6f676f47726164613230307837312e706e67)](https://grada.com.ar)

We invest a lot of resources into creating best in class open source packages. You can support us by [buying one of our paid services](https://www.grada.com.ar/).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://www.grada.com.ar/contacto/).

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

[](#installation)

You can install the package via composer:

```
composer require consultora-grada/ean13-validator
```

Usage
-----

[](#usage)

```
use Grada\Ean13validator\Ean13validatorClass;

$vc = new Ean13validatorClass();
$result = $vc->validate_EAN13Barcode("0123456789");   // false because it is not a valid EAN13 barcode

$result1 = $vc->validate_EAN13Barcode("7790040111004");   // true because it is a valid EAN13 barcode
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Carlos Rubén Jacobs](https://github.com/consultora-grada)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 91.3% 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 ~0 days

Total

4

Last Release

1894d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/04842451abe74b56f40dd3c0b3f559332af774ac2b2d0511d38951e38e1df561?d=identicon)[carlos.jacobs](/maintainers/carlos.jacobs)

---

Top Contributors

[![carlosjac](https://avatars.githubusercontent.com/u/334075?v=4)](https://github.com/carlosjac "carlosjac (21 commits)")[![consultora-grada](https://avatars.githubusercontent.com/u/11218314?v=4)](https://github.com/consultora-grada "consultora-grada (2 commits)")

---

Tags

gradaean13validator

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/consultora-grada-ean13-validator/health.svg)

```
[![Health](https://phpackages.com/badges/consultora-grada-ean13-validator/health.svg)](https://phpackages.com/packages/consultora-grada-ean13-validator)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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