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 today

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

23

—

LowBetter than 26% of packages

Maintenance43

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity34

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

457d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1227715?v=4)[Florentin Vintila](/maintainers/florentinvintila)[@florentinvintila](https://github.com/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

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.5k](/packages/larastan-larastan)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[illuminate/validation

The Illuminate Validation package.

18838.2M1.7k](/packages/illuminate-validation)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M195](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.2k14](/packages/tallstackui-tallstackui)

PHPackages © 2026

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