PHPackages                             davidvandertuijn/eori - 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. davidvandertuijn/eori

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

davidvandertuijn/eori
=====================

Economic Operators Registration and Identification system (EORI) Validator

2.0.0(1y ago)15.0k↑78.1%1MITPHPPHP &gt;=7.1.0

Since Jul 15Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (1)

Economic Operators Registration and Identification system (EORI) Validator
==========================================================================

[](#economic-operators-registration-and-identification-system-eori-validator)

[![Total Downloads](https://camo.githubusercontent.com/253380dee675229345e3217a524ad24dfafe105d707b39482959d6f7aa6aa847/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f656f72692f642f746f74616c2e737667)](https://packagist.org/packages/davidvandertuijn/eori)[![Latest Stable Version](https://camo.githubusercontent.com/5979bf869b46954ee123e9a4a8816984f2c8409e870942349f7cfa438f5c6a0f/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f656f72692f762f737461626c652e737667)](https://packagist.org/packages/davidvandertuijn/eori)[![License](https://camo.githubusercontent.com/37498360ac3eb2d6b390edb91e94c65e0d3174ef821ee79f8e3b6693d1e53934/68747470733a2f2f706f7365722e707567782e6f72672f646176696476616e6465727475696a6e2f656f72692f6c6963656e73652e737667)](https://packagist.org/packages/davidvandertuijn/eori)

[![Economic Operators Registration and Identification system (EORI) Validator](https://camo.githubusercontent.com/dfd7203214380b9fc2a0a6c1b70aea3d3cbac89e5e5ee25506f16525d05c9062/68747470733a2f2f63646e2e646176696476616e6465727475696a6e2e6e6c2f6769746875622f656f72692e706e67)](https://camo.githubusercontent.com/dfd7203214380b9fc2a0a6c1b70aea3d3cbac89e5e5ee25506f16525d05c9062/68747470733a2f2f63646e2e646176696476616e6465727475696a6e2e6e6c2f6769746875622f656f72692e706e67)

The Economic Operators Registration and Identification (EORI) system is a crucial component in international trade, designed to streamline customs processes and enhance the efficiency of cross-border operations. The EORI Validator provides businesses and customs authorities with a reliable tool to verify the validity of EORI numbers assigned to economic operators within the European Union.

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/davidvandertuijn)

Install
-------

[](#install)

```
composer require davidvandertuijn/eori
```

Usage
-----

[](#usage)

```
use Davidvandertuijn\Eori\Validator as EoriValidator;
```

**Validate**

```
$eori = new EoriValidator;

$eori->validate('NL857117683'); // true

if ($eori->isValid()) {
    // true
}
```

Strict
------

[](#strict)

In this EORI Validation library, when strict mode is set to FALSE, the validation process is more flexible, especially in scenarios where the SOAP service is temporarily unavailable. In such cases, the validation will return TRUE, allowing the workflow to continue without disruption due to service timeouts or SOAP errors.

```
$eori->setStrict(false); // default = true
```

Cache
-----

[](#cache)

To optimize the validation process and reduce the dependency on the SOAP service, we recommend caching valid EORI numbers within your application. This approach minimizes repeated requests to the SOAP service and improves overall performance.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

Every ~810 days

Total

2

Last Release

640d ago

Major Versions

1.0 → 2.0.02024-10-02

PHP version history (2 changes)1.0PHP &gt;=7.0.0

2.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d8904bedce7fb2ec131c0d18c13aeaa82b00af2fd03ebe099886ac462b1d29e?d=identicon)[davidvandertuijn](/maintainers/davidvandertuijn)

---

Top Contributors

[![davidvandertuijn](https://avatars.githubusercontent.com/u/11010507?v=4)](https://github.com/davidvandertuijn "davidvandertuijn (8 commits)")

### Embed Badge

![Health badge](/badges/davidvandertuijn-eori/health.svg)

```
[![Health](https://phpackages.com/badges/davidvandertuijn-eori/health.svg)](https://phpackages.com/packages/davidvandertuijn-eori)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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