PHPackages                             relaxed/ean-search - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. relaxed/ean-search

ActiveLibrary[HTTP &amp; Networking](/categories/http)

relaxed/ean-search
==================

A PHP class for EAN and ISBN name lookup and validation using the API on ean-search.org

v1.6(1y ago)52.7k↓100%2MITPHPPHP &gt;=5.3.0

Since May 5Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/eansearch/ean-search)[ Packagist](https://packagist.org/packages/relaxed/ean-search)[ Docs](https://www.ean-search.org/ean-database-api.html)[ RSS](/packages/relaxed-ean-search/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (8)Used By (0)

relaxed/ean-search
==================

[](#relaxedean-search)

A PHP class for EAN and ISBN name lookup and validation using the API on ean-search.org.

To use it, you need an API access token from

Initialization
--------------

[](#initialization)

```
include "EANSearch.php";

// your access token from ean-search.org
$accessToken = getenv("EAN_SEARCH_API_TOKEN");

$eanSearch = new EANSearch($accessToken);
```

Usage
-----

[](#usage)

```
$ean = '5099750442227';
$name = $eanSearch->barcodeLookup($ean);
echo "$ean is $name\n";

// more detailed response, preferably in English
$product = $eanSearch->barcodeSearch($ean, 1);
echo "$ean is $product->name from category $product->categoryName (Google category $product->googleCategoryId) issued in $product->issuingCountry\n";

$isbn = '1119578884';
$title = $eanSearch->isbnLookup($isbn);
echo "$isbn is $title\n";

$ok = $eanSearch->verifyChecksum($ean);
echo "$ean is " . ($ok ? 'valid' : 'invalid') . "\n";

$eanList = $eanSearch->productSearch('Apple iPod');
foreach ($eanList as $product) {
	echo "$product->ean is $product->name\n";
}

$eanList = $eanSearch->similarProductSearch('Apple iPod with extra feature');
foreach ($eanList as $product) {
	echo "$product->ean is $product->name\n";
}

$eanList = $eanSearch->categorySearch(45, 'Thriller');
foreach ($eanList as $product) {
	echo "$product->ean from Music category is $product->name\n";
}

$eanList = $eanSearch->barcodePrefixSearch(4007249146);
foreach ($eanList as $product) {
	echo "$product->ean is $product->name\n";
}

$ean = '5099750442227';
$country = $eanSearch->issuingCountryLookup($ean);
echo "$ean was issued in $country\n";

$ean = '5099750442227';
$barcode = $eanSearch->barcodeImage($ean, 300, 200);
echo "HTML: ";

$credits = $eanSearch->creditsRemaining();
echo "$credits credits remaining\n";
```

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance65

Regular maintenance activity

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~467 days

Recently: every ~358 days

Total

7

Last Release

487d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

barcodeeangtingtin-codesisbnisbn-10isbn-13lookupphpsearchupcrestbarcodeeanupcwebserviceISBNISBN13

### Embed Badge

![Health badge](/badges/relaxed-ean-search/health.svg)

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

###  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.5M85](/packages/picqer-php-barcode-generator)[cundd/rest

REST API for TYPO3 CMS

78120.0k1](/packages/cundd-rest)[megaads/apify

A pretty library to help developers build RESTful APIs lightly, quickly and properly even without writing code

151.7k](/packages/megaads-apify)

PHPackages © 2026

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