PHPackages                             eventjet/vatin - 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. eventjet/vatin

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

eventjet/vatin
==============

1.2.1(2y ago)022.6k↑12.8%MITPHPPHP &gt;=8.1

Since Apr 8Pushed 2y agoCompare

[ Source](https://github.com/eventjet/eventjet-vatin)[ Packagist](https://packagist.org/packages/eventjet/vatin)[ RSS](/packages/eventjet-vatin/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (7)Dependencies (11)Versions (10)Used By (0)

eventjet-vatin
==============

[](#eventjet-vatin)

[![Build Status](https://camo.githubusercontent.com/669b58258b62b1893fb3ff5d78f1bc722311c0befc2360f6d8e85d5b3bd8c039/68747470733a2f2f7472617669732d63692e6f72672f6576656e746a65742f6576656e746a65742d766174696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/eventjet/eventjet-vatin)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/463fba42de54ca2a76e960eaa0a385b45d834cd0a8dfe161b0d53173006cb7b5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6576656e746a65742f6576656e746a65742d766174696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/eventjet/eventjet-vatin/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/075d82a3f5d80b0181203102ede50963ad5187d9eb77b9616e8ac13d54ff19bc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6576656e746a65742f6576656e746a65742d766174696e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/eventjet/eventjet-vatin/?branch=master)

VAT identification number value object and validation

This package uses [ddeboer/vatin](https://github.com/ddeboer/vatin) for validation.

Usage
-----

[](#usage)

You can create an instance of `Eventjet\Vatin\Vatin` directly:

```
$vatin = new Eventjet\Vatin\Vatin('NL123456789B01');
```

This checks if the format of the VAT IN is correct. If you also want to check if the number actually exists using [VIES](http://ec.europa.eu/taxation_customs/vies/vieshome.do), you should use the factory instead:

```
$validator = new Ddeboer\Vatin\Validator;
$factory = new Eventjet\Vatin\VatinFactory($validator);
$vatin = $factory->create('NL123456789B01');
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~343 days

Recently: every ~481 days

Total

9

Last Release

991d ago

PHP version history (3 changes)1.0.4PHP &gt;= 5.6

1.0.5PHP ^7.4 || ^8.0

1.2.1PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![rieschl](https://avatars.githubusercontent.com/u/3321556?v=4)](https://github.com/rieschl "rieschl (8 commits)")[![MidnightDesign](https://avatars.githubusercontent.com/u/743172?v=4)](https://github.com/MidnightDesign "MidnightDesign (7 commits)")[![ahammerweb](https://avatars.githubusercontent.com/u/128702695?v=4)](https://github.com/ahammerweb "ahammerweb (1 commits)")

---

Tags

hacktoberfestphpvat-identification-numbervatin

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/eventjet-vatin/health.svg)

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

###  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)
