PHPackages                             hermesmartins/php-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. hermesmartins/php-ean13-validator

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

hermesmartins/php-ean13-validator
=================================

This package has the function to validate an EAN with 13 numbers.

v0.1-alpha(8y ago)28.2k↓44.4%1MITPHPPHP &gt;=5.4.0

Since Apr 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/HermesMartins/php-ean13-validator)[ Packagist](https://packagist.org/packages/hermesmartins/php-ean13-validator)[ RSS](/packages/hermesmartins-php-ean13-validator/feed)WikiDiscussions master Synced 1mo ago

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

PHP EAN13 Validator
===================

[](#php-ean13-validator)

EAN13 Validator is a PHP library for dealing with EAN13 validations in brazilian's marketplaces.

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

[](#installation)

### Requirements

[](#requirements)

- PHP 5.4.0 and up

Install
-------

[](#install)

Use composer to:

require hermesmartins/php-ean13-validator

Usage
-----

[](#usage)

You can simple import the library using "use HermesMartins\\EAN13\\EAN13Validator".

Use the function isAValidEAN13({ean}) to get a boolean if it is a valid or invalid EAN.

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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

2953d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5339403cd89cb401a1803f142f2db2f79176953cc20109578514cf94ff18fa42?d=identicon)[HermesMartins](/maintainers/HermesMartins)

---

Top Contributors

[![HermesMartins](https://avatars.githubusercontent.com/u/14934318?v=4)](https://github.com/HermesMartins "HermesMartins (9 commits)")[![rafa-acioly](https://avatars.githubusercontent.com/u/11068059?v=4)](https://github.com/rafa-acioly "rafa-acioly (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hermesmartins-php-ean13-validator/health.svg)

```
[![Health](https://phpackages.com/badges/hermesmartins-php-ean13-validator/health.svg)](https://phpackages.com/packages/hermesmartins-php-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)
