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

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

ddeboer/vatin
=============

Validate VAT identification numbers

3.1.0(1y ago)1413.0M—8.1%37[2 issues](https://github.com/ddeboer/vatin/issues)[2 PRs](https://github.com/ddeboer/vatin/pulls)8MITPHPPHP &gt;=8.1CI passing

Since Feb 22Pushed 1y ago11 watchersCompare

[ Source](https://github.com/ddeboer/vatin)[ Packagist](https://packagist.org/packages/ddeboer/vatin)[ GitHub Sponsors](https://github.com/ddeboer)[ RSS](/packages/ddeboer-vatin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (21)Used By (8)

VATIN
=====

[](#vatin)

[![Packagist Version](https://camo.githubusercontent.com/bf6c1c93c65dc36c84d02d2142b64779b5464e90826379b76f5e21b42fb6dbc5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646465626f65722f766174696e)](https://camo.githubusercontent.com/bf6c1c93c65dc36c84d02d2142b64779b5464e90826379b76f5e21b42fb6dbc5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646465626f65722f766174696e)

A small PHP library for validating VAT identification numbers (VATINs).

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

[](#installation)

This library is available on [Packagist](https://packagist.org/packages/ddeboer/vatin):

```
$ composer require ddeboer/vatin
```

If you want to use this library in a Symfony application, you can use the [VatinBundle](https://github.com/ddeboer/vatin-bundle) instead.

Usage
-----

[](#usage)

Validate a VAT number’s format:

```
use Ddeboer\Vatin\Validator;

$validator = new Validator();
$bool = $validator->isValid('NL123456789B01');
```

Additionally check whether the VAT number is in use, with a call to the [VAT Information Exchange System (VIES)](https://ec.europa.eu/taxation_customs/vies/faq.html#item_16) SOAP web service:

```
use Ddeboer\Vatin\Validator;

$validator = new Validator();
$bool = $validator->isValid('NL123456789B01', true);
```

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance44

Moderate activity, may be stable

Popularity59

Moderate usage in the ecosystem

Community34

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 70.3% 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 ~231 days

Recently: every ~213 days

Total

20

Last Release

445d ago

Major Versions

1.3.3 → 2.0.02017-01-21

2.4.1 → 3.0.02025-02-27

PHP version history (3 changes)v1.1PHP &gt;=5.3.0

2.2.0PHP &gt;=5.6.0

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/54c045456672a15a85dd65e79418d0f3375322df38ac4dedb5d66487d86ab592?d=identicon)[ddeboer](/maintainers/ddeboer)

---

Top Contributors

[![ddeboer](https://avatars.githubusercontent.com/u/89267?v=4)](https://github.com/ddeboer "ddeboer (45 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (2 commits)")[![mweimerskirch](https://avatars.githubusercontent.com/u/362092?v=4)](https://github.com/mweimerskirch "mweimerskirch (2 commits)")[![aleho](https://avatars.githubusercontent.com/u/138721?v=4)](https://github.com/aleho "aleho (2 commits)")[![lnpbk](https://avatars.githubusercontent.com/u/608543?v=4)](https://github.com/lnpbk "lnpbk (1 commits)")[![martinknor](https://avatars.githubusercontent.com/u/2004222?v=4)](https://github.com/martinknor "martinknor (1 commits)")[![MidnightDesign](https://avatars.githubusercontent.com/u/743172?v=4)](https://github.com/MidnightDesign "MidnightDesign (1 commits)")[![neodc](https://avatars.githubusercontent.com/u/304141?v=4)](https://github.com/neodc "neodc (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![pumatertion](https://avatars.githubusercontent.com/u/1853527?v=4)](https://github.com/pumatertion "pumatertion (1 commits)")[![siemendev](https://avatars.githubusercontent.com/u/11353665?v=4)](https://github.com/siemendev "siemendev (1 commits)")[![simonschaufi](https://avatars.githubusercontent.com/u/941794?v=4)](https://github.com/simonschaufi "simonschaufi (1 commits)")[![spekulatius](https://avatars.githubusercontent.com/u/8433587?v=4)](https://github.com/spekulatius "spekulatius (1 commits)")[![timonf](https://avatars.githubusercontent.com/u/546813?v=4)](https://github.com/timonf "timonf (1 commits)")[![alexanderglueck](https://avatars.githubusercontent.com/u/6459474?v=4)](https://github.com/alexanderglueck "alexanderglueck (1 commits)")[![cmoralesweb](https://avatars.githubusercontent.com/u/5377322?v=4)](https://github.com/cmoralesweb "cmoralesweb (1 commits)")[![fpalamour](https://avatars.githubusercontent.com/u/10830197?v=4)](https://github.com/fpalamour "fpalamour (1 commits)")

---

Tags

phpvalidationvatvat-numbervattaxviesbtw

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[dragonbe/vies

EU VAT numbers validation using the VIES Service of the European Commission

2794.0M15](/packages/dragonbe-vies)[ronanguilloux/isocodes

PHP library - Validators for standards from ISO, International Finance, Public Administrations, GS1, Book and Music Industries, Phone numbers &amp; Zipcodes for many countries

8013.3M23](/packages/ronanguilloux-isocodes)[ph-7/eu-vat-validator

A simple and clean PHP class that validates EU VAT numbers against the central ec.europa.eu database (using the official europa API).

95464.2k1](/packages/ph-7-eu-vat-validator)[ddeboer/vatin-bundle

Symfony bundle for the VATIN library

29884.1k](/packages/ddeboer-vatin-bundle)[drahosistvan/vatvalidation

A simple wrapper for VIES VAT Validation WebService.

13256.6k](/packages/drahosistvan-vatvalidation)[danielebarbaro/laravel-vat-eu-validator

A simple package that validates EU VAT numbers against the central ec.europa.eu database

37369.4k](/packages/danielebarbaro-laravel-vat-eu-validator)

PHPackages © 2026

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