PHPackages                             lsv/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. lsv/ean-search

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

lsv/ean-search
==============

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

v1.0.0(3y ago)4286MITPHPPHP &gt;=8.1

Since Aug 10Pushed 3y ago3 watchersCompare

[ Source](https://github.com/lsv/ean-search)[ Packagist](https://packagist.org/packages/lsv/ean-search)[ RSS](/packages/lsv-ean-search/feed)WikiDiscussions master Synced today

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

EAN Search
----------

[](#ean-search)

A library for EAN, UPC and ISBN name lookup and validation using the API on ean-search.org.

### Install

[](#install)

```
composer require lsv/ean-search

```

### Setup

[](#setup)

To use it, you need an API access token from [ean-search](https://www.ean-search.org/ean-database-api.html)

Then you need to set your token with

```
\Lsv\EanSearch\Request::setApiToken('');
```

### Usage

[](#usage)

Everywhere `` is a language from `\Lsv\EanSearch\Utils\LanguageEnum`

Fx.

```
\Lsv\EanSearch\Utils\LanguageEnum::SPANISH
```

##### Barcode lookup

[](#barcode-lookup)

Query the ean-search database for a specific barcode.

```
$response = \Lsv\EanSearch\BarcodeLookup::request('', '');
// Response is a \Lsv\EanSearch\Model\ProductModel object
```

##### Barcode prefix search

[](#barcode-prefix-search)

Query the ean-search database for all barcodes with the same beginning.

```
$response = \Lsv\EanSearch\BarcodePrefixSearch::request('', '');
// Response is an array of \Lsv\EanSearch\Model\ProductModel objects
```

##### Verify checksum

[](#verify-checksum)

You can verify the checksum in a barcode. This allows you to check if it is a valid barcode regardless if ean-search have it the database or not.

```
$response = \Lsv\EanSearch\VerifyChecksum::request('');
// Response is a \Lsv\EanSearch\Model\VerifyChecksumModel object
```

##### Barcode image

[](#barcode-image)

```
$response = \Lsv\EanSearch\BarcodeImage::request('', '', '');
//  and  is optional
// Response is a \Lsv\EanSearch\Model\BarcodeImageModel object
```

##### Issuing country lookup

[](#issuing-country-lookup)

Query ean-search database for an issuing country of a barcode.

In contrast to barcode-lookup, this will give a result, even if we don't know the product name.

```
$response = \Lsv\EanSearch\IssuingCountryLookup::request('');
// Response is a \Lsv\EanSearch\Model\IssuingCountryModel object
```

##### Product search

[](#product-search)

Query the ean-search database for a keyword or product name.

```
$response = \Lsv\EanSearch\ProductSearch::request('', '');
// Response is an array of \Lsv\EanSearch\Model\ProductModel objects
```

##### Category search

[](#category-search)

Query the ean-search database for products from a certain category.

To get a `` you must use `\Lsv\EanSearch\Utils\CategoryEnum`

Fx.

```
\Lsv\EanSearch\Utils\CategoryEnum::ART
```

```
$response = \Lsv\EanSearch\CategorySearch::request('', '', '');
//  is optional
// Response is an array of \Lsv\EanSearch\Model\ProductModel objects
```

##### Account status

[](#account-status)

Query the status of your account.

```
$response = \Lsv\EanSearch\AccountStatus::request();
// Response is a \Lsv\EanSearch\Model\AccountStatusModel object
```

### License

[](#license)

MIT License

Copyright (c) 2022 Martin Aarhof

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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

1423d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

restbarcodeeanupcwebserviceISBNISBN13

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M339](/packages/api-platform-core)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[api-platform/symfony

Symfony API Platform integration

384.5M129](/packages/api-platform-symfony)

PHPackages © 2026

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