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

ActiveLibrary

sandorl195/vatin
================

Validate VAT identification numbers

3.0.0(7y ago)0142↓50%MITPHPPHP &gt;=5.6.0

Since Feb 22Pushed 6y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (15)Used By (0)

VATIN
=====

[](#vatin)

[![Build Status](https://camo.githubusercontent.com/c0de2e814ae65515bb387547ef9b300ab982daf9dc9907c48fdc5592889da7ce/68747470733a2f2f7472617669732d63692e6f72672f646465626f65722f766174696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ddeboer/vatin)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/31372b0c970790250eda3feefcdb0fe01d34fc28ee1886dac7133dea2f0beff5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646465626f65722f766174696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ddeboer/vatin/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/9dbb886440ead01526024a1e599938ce354ec576c477f8fc5c5407522ece7639/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646465626f65722f766174696e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ddeboer/vatin/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/ac50a94ed02cbfc89203100a6d06387111fca601f72798f78a76c394412b8781/68747470733a2f2f706f7365722e707567782e6f72672f646465626f65722f766174696e2f762f737461626c652e706e67)](https://packagist.org/packages/ddeboer/vatin)

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

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

[](#installation)

This library is available on [Packagist](http://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)\] ([http://ec.europa.eu/taxation\_customs/vies/faq.html#item\_16](http://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

30

—

LowBetter than 67% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 82.4% 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 ~170 days

Recently: every ~194 days

Total

14

Last Release

2558d ago

Major Versions

1.3.3 → 2.0.02017-01-21

2.2.0 → 3.0.02019-03-20

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

2.2.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/122ccd1347fa7514a3a9e8adb565b732a992a13381f09dfce7d84680c9fe90c9?d=identicon)[sandorl195](/maintainers/sandorl195)

---

Top Contributors

[![ddeboer](https://avatars.githubusercontent.com/u/89267?v=4)](https://github.com/ddeboer "ddeboer (42 commits)")[![mweimerskirch](https://avatars.githubusercontent.com/u/362092?v=4)](https://github.com/mweimerskirch "mweimerskirch (2 commits)")[![lnpbk](https://avatars.githubusercontent.com/u/608543?v=4)](https://github.com/lnpbk "lnpbk (1 commits)")[![MidnightDesign](https://avatars.githubusercontent.com/u/743172?v=4)](https://github.com/MidnightDesign "MidnightDesign (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)")[![alexanderglueck](https://avatars.githubusercontent.com/u/6459474?v=4)](https://github.com/alexanderglueck "alexanderglueck (1 commits)")[![timonf](https://avatars.githubusercontent.com/u/546813?v=4)](https://github.com/timonf "timonf (1 commits)")[![cmoralesweb](https://avatars.githubusercontent.com/u/5377322?v=4)](https://github.com/cmoralesweb "cmoralesweb (1 commits)")

---

Tags

vattaxviesbtw

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ddeboer/vatin

Validate VAT identification numbers

1422.9M8](/packages/ddeboer-vatin)[mpociot/vat-calculator

EU VAT calculation, the way it should be.

1.3k3.8M16](/packages/mpociot-vat-calculator)[dragonbe/vies

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

2793.9M13](/packages/dragonbe-vies)[commerceguys/tax

Tax library with a flexible data model, predefined tax rates, powerful resolving logic.

284757.1k](/packages/commerceguys-tax)[ddeboer/vatin-bundle

Symfony bundle for the VATIN library

30867.4k](/packages/ddeboer-vatin-bundle)[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).

95454.3k1](/packages/ph-7-eu-vat-validator)

PHPackages © 2026

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