PHPackages                             bolivir/vat - 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. bolivir/vat

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

bolivir/vat
===========

A package for validating EU VAT numbers, checking their format and existence.

v1.0.0(3y ago)09[1 issues](https://github.com/bolivir/vat/issues)[2 PRs](https://github.com/bolivir/vat/pulls)MITPHPPHP ^8.1

Since Jan 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bolivir/vat)[ Packagist](https://packagist.org/packages/bolivir/vat)[ RSS](/packages/bolivir-vat/feed)WikiDiscussions develop Synced today

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

VAT
===

[](#vat)

A package for validating EU VAT numbers, checking their format and existence.

List of available clients
-------------------------

[](#list-of-available-clients)

- ✔ VIES

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

[](#installation)

This package can be installed via composer:

```
$ composer require bolivir/vat
```

How to use
----------

[](#how-to-use)

### Validate the format

[](#validate-the-format)

The method `validateFormat` will check the format for a given VAT number. It will not check the existence!
Example:

```
$VAT = new \Bolivir\Vat\Vat();
$response = $VAT->validateFormat('FR12345678901');
```

Calling the `validateFormat` method will return a `VatFormatValidationResponse`

```
Bolivir\Vat\VatFormatValidationResponse {
-countryCode: string
-vatNumber: string
-valid: boolean
}
```

### Validate the existence

[](#validate-the-existence)

The method `validate` will check the vat number for real existence, it will check it by the VIES service
Example:

```
$VAT = new \Bolivir\Vat\Vat();
echo $VAT->validate('FR12345678901');
```

Calling the `validate` method will return a `VatValidationResponse`

```
Bolivir\Vat\VatValidationResponse {
-countryCode: string
-vatNumber: string
-requestDate: string
-valid: boolean
-name: string
-address: string
}
```

Change log
==========

[](#change-log)

Please see CHANGELOG for more information on what has been changed recently.

Security
========

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
=======

[](#credits)

- [Bolivir](https://github.com/bolivir)
- [All Contributors](https://github.com/bolivir/vat/graphs/contributors)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.9% 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

1256d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15746633?v=4)[Ricardo Mosselman](/maintainers/Bolivir)[@bolivir](https://github.com/bolivir)

---

Top Contributors

[![bolivir](https://avatars.githubusercontent.com/u/15746633?v=4)](https://github.com/bolivir "bolivir (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")

---

Tags

vieseu vatvat validation

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bolivir-vat/health.svg)

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

###  Alternatives

[dragonbe/vies

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

2814.2M19](/packages/dragonbe-vies)[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).

97498.1k1](/packages/ph-7-eu-vat-validator)[drahosistvan/vatvalidation

A simple wrapper for VIES VAT Validation WebService.

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

Validate VAT identification numbers

1423.2M9](/packages/ddeboer-vatin)

PHPackages © 2026

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