PHPackages                             rebuy/ean-isbn-library - 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. rebuy/ean-isbn-library

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

rebuy/ean-isbn-library
======================

A PHP library for EAN and ISBN validation and conversion

v1.1.0(1y ago)7247.3k↓37.5%2MITPHPPHP &gt;=7.1

Since Nov 23Pushed 1y ago30 watchersCompare

[ Source](https://github.com/rebuy-de/ean-isbn-library)[ Packagist](https://packagist.org/packages/rebuy/ean-isbn-library)[ Docs](https://github.com/rebuy-de/ean-isbn-library)[ RSS](/packages/rebuy-ean-isbn-library/feed)WikiDiscussions master Synced 1mo ago

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

reBuy EAN / ISBN Library
========================

[](#rebuy-ean--isbn-library)

A PHP library for validating and converting EAN and ISBN identifiers licensed under the [MIT license](LICENSE.md).

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

[](#installation)

To use the library you need PHP 7.1 and [Composer](https://getcomposer.org/). Add the following entry to your `composer.json`.

```
composer require rebuy/ean-isbn-library
```

Usage
-----

[](#usage)

The core of the library are identifier objects representing valid EAN-13, EAN-8, or ISBN-10 identifiers. Identifier objects can be created using a parser which validates and normalizes the identifier string.

```
$parser = new Parser();
$identifier = $parser->parse('978-0091956141');

echo $identifier; // will print '9780091956141'
```

Once you have an identifier object, you can convert it into an alternate representation if available.

```
$converter = new Converter();
$conversion = $converter->convert($identifier);
echo $conversion; // will print '0091956145'
```

Both parsers and converters will throw exceptions if the action can’t be performed. Go to [examples](/examples) for complete executable examples and [docs](docs/ApiIndex.md) for a full API reference.

Troubleshooting
---------------

[](#troubleshooting)

- If you come across errors or bugs please feel free to report them by opening an issue [here](https://github.com/rebuy-de/ean-isbn-library/issues)but please check open issues before you do in case someone already created one.

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

[](#contributing)

Feel free to [open an issue](https://github.com/rebuy-de/ean-isbn-library/issues) if you find bugs or if you're missing functionality that should be included.

Pull requests for additional features are welcome as long as they fit the requirements detailed under [CONTRIBUTING](CONTRIBUTING.md).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance42

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~3345 days

Total

2

Last Release

484d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.6

v1.1.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/84ed641aeff9d2a1e53a3db31958edd22768163b5a6f54c8a4d602fb5faab13f?d=identicon)[Spea](/maintainers/Spea)

![](https://www.gravatar.com/avatar/d47aeb7d0369ca8d2a14dce67cc4630501e06098de8bf4d0709ca92d80c415ec?d=identicon)[omares](/maintainers/omares)

---

Top Contributors

[![greg0ire](https://avatars.githubusercontent.com/u/657779?v=4)](https://github.com/greg0ire "greg0ire (6 commits)")[![Spea](https://avatars.githubusercontent.com/u/495017?v=4)](https://github.com/Spea "Spea (2 commits)")[![omares](https://avatars.githubusercontent.com/u/1375307?v=4)](https://github.com/omares "omares (1 commits)")

---

Tags

validationparserconversioneanparsingISBN

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rebuy-ean-isbn-library/health.svg)

```
[![Health](https://phpackages.com/badges/rebuy-ean-isbn-library/health.svg)](https://phpackages.com/packages/rebuy-ean-isbn-library)
```

###  Alternatives

[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M383](/packages/respect-validation)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M107](/packages/propaganistas-laravel-phone)[opis/json-schema

Json Schema Validator for PHP

64736.9M186](/packages/opis-json-schema)[giggsey/libphonenumber-for-php-lite

A lite version of giggsey/libphonenumber-for-php, which is a PHP Port of Google's libphonenumber

8912.9M47](/packages/giggsey-libphonenumber-for-php-lite)[biblys/isbn

A PHP library to convert and validate ISBNs

56346.8k1](/packages/biblys-isbn)

PHPackages © 2026

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