PHPackages                             florowebdevelopment/vat-validator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. florowebdevelopment/vat-validator

Abandoned → [https://github.com/davidvandertuijn/vat-validator](/?search=https%3A%2F%2Fgithub.com%2Fdavidvandertuijn%2Fvat-validator)Library[Utility &amp; Helpers](/categories/utility)

florowebdevelopment/vat-validator
=================================

VAT Validator

3.0(5y ago)05.3kMITPHPPHP &gt;=7.0.0

Since Mar 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/florowebdevelopment/vat-validator)[ Packagist](https://packagist.org/packages/florowebdevelopment/vat-validator)[ RSS](/packages/florowebdevelopment-vat-validator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Deprecated
==========

[](#deprecated)

This package is deprecated and will not be maintained.

VAT Validator
=============

[](#vat-validator)

[![Total Downloads](https://camo.githubusercontent.com/3215585428d86521e81bd756e6dc9204be6518ddff732648d0a090b729930689/68747470733a2f2f706f7365722e707567782e6f72672f666c6f726f776562646576656c6f706d656e742f7661742d76616c696461746f722f642f746f74616c2e737667)](https://packagist.org/packages/florowebdevelopment/vat-validator)[![Latest Stable Version](https://camo.githubusercontent.com/8a6381f7bb8bc4775335c855e8f9bea827ac214d6410b60bd13c596e7c694170/68747470733a2f2f706f7365722e707567782e6f72672f666c6f726f776562646576656c6f706d656e742f7661742d76616c696461746f722f762f737461626c652e737667)](https://packagist.org/packages/florowebdevelopment/vat-validator)[![License](https://camo.githubusercontent.com/6a6cfb3501af551a261e8315f1261b640cb04cd2d05dd6431f11306cca46757f/68747470733a2f2f706f7365722e707567782e6f72672f666c6f726f776562646576656c6f706d656e742f7661742d76616c696461746f722f6c6963656e73652e737667)](https://packagist.org/packages/florowebdevelopment/vat-validator)[![StyleCI](https://camo.githubusercontent.com/d63476d0faf8c5a5f097832a47904fa36359e4bca6283c8aeab4b73dba22123b/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137373137313838362f736869656c643f7374796c653d666c6174)](https://camo.githubusercontent.com/d63476d0faf8c5a5f097832a47904fa36359e4bca6283c8aeab4b73dba22123b/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137373137313838362f736869656c643f7374796c653d666c6174)

This library validate VAT numbers by using regular expressions and the VIES (VAT Information Exchange System) service.

Install
-------

[](#install)

```
composer require florowebdevelopment/vat-validator

```

Usage
-----

[](#usage)

```
use Florowebdevelopment\VatValidator\VatValidator;
```

```
$oVatValidator = new VatValidator;

$oVatValidator->validate('NL821783981B01'); // true

if ($oVatValidator->isValid()) {
    $aMetaData = $oVatValidator->getMetaData();

    /*
    array(
        "name" => "FLORO WEBDEVELOPMENT B.V.",
        "address" => "WESTBLAAK 00180 3012KN ROTTERDAM"
    )
    */
}

```

Strict (optional)
-----------------

[](#strict-optional)

When strict is set to FALSE, the VAT number validation returns TRUE if the VIES service is not available (CURL timeout or SoapFault).

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

```

Comments
--------

[](#comments)

We suggest that you cache the valid VAT numbers in your application to prevent multiple requests to the VIES service.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~162 days

Total

5

Last Release

1958d ago

Major Versions

1.1 → 2.02019-05-07

2.1 → 3.02020-12-28

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/7b5b7a8fee102ca4d6dc86b688c7c494599571e0fe22f4a9796ba0fca6f1cecb?d=identicon)[florowebdevelopment](/maintainers/florowebdevelopment)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[aune-io/magento2-product-category-url-fix

Product category url fix for Magento 2

165.9k](/packages/aune-io-magento2-product-category-url-fix)

PHPackages © 2026

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