PHPackages                             burtds/laravel-vatnumber-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. burtds/laravel-vatnumber-checker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

burtds/laravel-vatnumber-checker
================================

A simple VAT Number checker package for Laravel.

v1.0.11(4mo ago)67171.8k—5.7%6MITPHPPHP &gt;=8.1CI passing

Since Jan 23Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/BurtDS/laravel-vatnumber-checker)[ Packagist](https://packagist.org/packages/burtds/laravel-vatnumber-checker)[ GitHub Sponsors](https://github.com/BurtDS)[ Patreon](https://www.patreon.com/codewithburt)[ RSS](/packages/burtds-laravel-vatnumber-checker/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (10)Dependencies (12)Versions (13)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1f8c68916e251118c6ea54b6afe4668ab3c386e5ada85ff4bf428ef41c91ac8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6275727464732f6c61726176656c2d7661746e756d6265722d636865636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/burtds/laravel-vatnumber-checker)[![GitHub Workflow Status](https://camo.githubusercontent.com/b519fed881970a7e51c73fef3d2e403dfa533f39d972467cb920cf684518680d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6275727464732f6c61726176656c2d7661746e756d6265722d636865636b65722f72756e2d74657374732d706573742e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/burtds/laravel-vatnumber-checker/actions/workflows/run-tests-pest.yml)[![Total Downloads](https://camo.githubusercontent.com/ba1608d3d76f34b5edacadd3fed0387a7d8d6117ea5e45d4cf9b3f85c6e93f13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6275727464732f6c61726176656c2d7661746e756d6265722d636865636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/burtds/laravel-vatnumber-checker)

About laravel-vatnumber-checker
-------------------------------

[](#about-laravel-vatnumber-checker)

A small package that allows you to easily retrieve information associated with a VAT number. Verification of validity, company name, and address of the company is only one api call away.

How to use laravel-vatnumber-checker
------------------------------------

[](#how-to-use-laravel-vatnumber-checker)

### Installation

[](#installation)

You can install the package via composer:

```
composer require burtds/laravel-vatnumber-checker
```

Afterwords, you're able to fetch your desired information.

### Usage

[](#usage)

This packages uses an API provided by the European Commission called "[VIES](https://ec.europa.eu/taxation_customs/vies/#/vat-validation)".

We'll need to import the Facade of this package on top of your file.

```
use Burtds\VatChecker\Facades\VatChecker
```

Once that is done, you'll be able to use the provide functions. For this example we're using the VAT Number of Vulpo BV.

```
$validVatNumber = '0749617582' // Vulpo BV's VAT number

// returns a raw response of the European Commission's API
VatChecker::getRawVatInstance('BE', $validVatNumber);

// returns the validity of a VAT number
VatChecker::isVatValid('BE', $validVatNumber);

// returns the company name related to the VAT number
VatChecker::getCompanyName('BE', $validVatNumber);

// returns the company address related to the VAT number
VatChecker::getCompanyAddress('BE', $validVatNumber);
```

There is also single parameter support for all methods.

```
$validVatNumber = 'BE0749617582' // Vulpo BV's VAT number

// returns a raw response of the European Commission's API
VatChecker::getRawVatInstance($validVatNumber);

// returns the validity of a VAT number
VatChecker::isVatValid($validVatNumber);

...
```

### Validation Rule

[](#validation-rule)

This package also provides a simple validation rule.

```
use Burtds\VatChecker\Rules\VatNumber;

$validatedData = $request->validate([
    'vat_number' => ['required', new VatNumber],
]);
```

This example will pass the validation when the provided vat number is valid. If not, it will return a neat error message.

Testing &amp; Code Formatting
-----------------------------

[](#testing--code-formatting)

For testing you can run:

```
composer test
```

For formatting the code using Laravel Pint you can run:

```
composer format
```

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this package, please send me an e-mail via . I'll get back at you as soon as possible.

Credits
-------

[](#credits)

- [Bert De Swaef](https://github.com/burtds)
- [All Contributors](../../contributors)

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance74

Regular maintenance activity

Popularity47

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.2% 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 ~72 days

Recently: every ~33 days

Total

12

Last Release

148d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2655353?v=4)[Bert De Swaef](/maintainers/BurtDS)[@BurtDS](https://github.com/BurtDS)

---

Top Contributors

[![BurtDS](https://avatars.githubusercontent.com/u/2655353?v=4)](https://github.com/BurtDS "BurtDS (37 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (23 commits)")[![pH-7](https://avatars.githubusercontent.com/u/1325411?v=4)](https://github.com/pH-7 "pH-7 (3 commits)")[![DominiqueSmaele](https://avatars.githubusercontent.com/u/40701629?v=4)](https://github.com/DominiqueSmaele "DominiqueSmaele (1 commits)")[![alies-dev](https://avatars.githubusercontent.com/u/5278175?v=4)](https://github.com/alies-dev "alies-dev (1 commits)")[![lucasmichot](https://avatars.githubusercontent.com/u/513603?v=4)](https://github.com/lucasmichot "lucasmichot (1 commits)")[![raphaelstolt](https://avatars.githubusercontent.com/u/48225?v=4)](https://github.com/raphaelstolt "raphaelstolt (1 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/burtds-laravel-vatnumber-checker/health.svg)

```
[![Health](https://phpackages.com/badges/burtds-laravel-vatnumber-checker/health.svg)](https://phpackages.com/packages/burtds-laravel-vatnumber-checker)
```

###  Alternatives

[nativephp/mobile

NativePHP for Mobile

1.1k102.1k151](/packages/nativephp-mobile)[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M189](/packages/spatie-laravel-health)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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