PHPackages                             florentinvintila/php-vies-checker - 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. florentinvintila/php-vies-checker

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

florentinvintila/php-vies-checker
=================================

PHP VAT checker based on the European Commission web service

3.0.2(1y ago)02BSD-2-ClausePHPPHP &gt;=7.3

Since Apr 3Pushed 1y agoCompare

[ Source](https://github.com/florentinvintila/php-vies-checker)[ Packagist](https://packagist.org/packages/florentinvintila/php-vies-checker)[ RSS](/packages/florentinvintila-php-vies-checker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

PHP VAT Checker
===============

[](#php-vat-checker)

A PHP package that helps you to check information about Union European companies through the combination of VAT number and Country code. This package is an interface to consume the SOAP API webservice provided by the European Commission. ([http://ec.europa.eu/taxation\_customs/vies/checkVatTestService.wsdl](http://ec.europa.eu/taxation_customs/vies/checkVatTestService.wsdl))

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

[](#installation)

You can install the package via composer:

```
composer require florentinvintila/php-vat-checker
```

Usage
-----

[](#usage)

### Checking the VAT information.

[](#checking-the-vat-information)

This check only validates whether the VAT information is valid.

```
use JairForo\VATChecker\Exceptions\VATCheckerException;
use JairForo\VATChecker\VATChecker;

try {
    /** @var bool $isValid */
    $isValid = (new VATChecker())->isValid($countryCode, $vatNumber);
} catch (VATCheckerException $exception) {
    // Something went wrong during the request.
}
```

### Obtaining the VAT information.

[](#obtaining-the-vat-information)

- If the information is not valid, an InvalidVATException is thrown.
- If something goes wrong during the request, an VATCheckerException is thrown.

```
use JairForo\VATChecker\Exceptions\InvalidVATException;
use JairForo\VATChecker\Exceptions\VATCheckerException;
use JairForo\VATChecker\Objects\VATResponse;
use JairForo\VATChecker\VATChecker;

try {
    /** @var VATResponse $vatResponse */
    $vatResponse = (new VATChecker())->check($countryCode, $vatNumber);

    print_r($vatResponse);
} catch (VATCheckerException $exception) {
    if ($exception instanceof InvalidVATException) {
        // The VAT information was invalid.
        return;
    }

    // Something else went wrong during the request.
}
```

The above, when successful, prints the following output:

```
{
  "country_code": "NL",
  "vat_number": "611989431B01",
  "requested_at": {
    "date": "2020-02-02 00:00:00.000000",
    "timezone_type": 1,
    "timezone": "+00:00"
  },
  "company_name": "UNICORN B.V.",
  "address": "UNICORN STREET 007",
  "zipcode": "1108DH",
  "city": "AMSTERDAM",
  "original_address": "UNICORN STREET 007 1108DH AMSTERDAM"
}

```

### Testing

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The BSD 2-clause "Simplified" license (bsd-2-clause). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance46

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 63.6% 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 ~0 days

Total

2

Last Release

402d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63f0fe8df3569424fbcaefd9f51c63b535903965b9d070e283197949daaf8e80?d=identicon)[florentinvintila](/maintainers/florentinvintila)

---

Top Contributors

[![jairforo-fixeads](https://avatars.githubusercontent.com/u/25613192?v=4)](https://github.com/jairforo-fixeads "jairforo-fixeads (28 commits)")[![jairforo](https://avatars.githubusercontent.com/u/7620948?v=4)](https://github.com/jairforo "jairforo (11 commits)")[![florentinvintila](https://avatars.githubusercontent.com/u/1227715?v=4)](https://github.com/florentinvintila "florentinvintila (3 commits)")[![claudiodekker](https://avatars.githubusercontent.com/u/1752195?v=4)](https://github.com/claudiodekker "claudiodekker (2 commits)")

---

Tags

phpvalidationvatviescheckercheckVatService

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/florentinvintila-php-vies-checker/health.svg)

```
[![Health](https://phpackages.com/badges/florentinvintila-php-vies-checker/health.svg)](https://phpackages.com/packages/florentinvintila-php-vies-checker)
```

###  Alternatives

[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M106](/packages/propaganistas-laravel-phone)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[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)[galahad/laravel-addressing

Laravel package providing addressing functionality

70316.6k](/packages/galahad-laravel-addressing)[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)
