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

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

rapidez/vat-validation
======================

Implements VIES validation to use on VAT fields in Rapidez

4.2.0(7mo ago)01.5k↓44.4%1GPL-3.0-or-laterPHPPHP ^8.1

Since Oct 22Pushed 5mo ago4 watchersCompare

[ Source](https://github.com/rapidez/vat-validation)[ Packagist](https://packagist.org/packages/rapidez/vat-validation)[ Docs](https://github.com/rapidez/vat-validation)[ RSS](/packages/rapidez-vat-validation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (11)Used By (0)

Rapidez vat-validation
======================

[](#rapidez-vat-validation)

Implements VIES validation to use on VAT fields in Rapidez.

This package makes use of [jsvat](https://github.com/se-panfilov/jsvat) to pre-validate the formatting of the given VAT number before sending it to the official [VIES API](https://ec.europa.eu/taxation_customs/vies/).

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

[](#installation)

```
yarn add jsvat --dev
composer require rapidez/vat-validation

```

Usage
-----

[](#usage)

Every Rapidez package will work with this package out of the box, and will not require any configuration.

However, if you're using your own fields, you can add the VAT check to an input by adding this to the input:

```
v-validate.vat

```

Note

If you're adding validation as an attribute onto a blade component, you will have to do something like this instead:

```
v-validate.vat="true"

```

This is because the Laravel blade formatter will automatically turn it into `v-validate.vat="v-validate.vat"` if you don't specify an expression.

VIES validation
---------------

[](#vies-validation)

To validate VAT numbers we use [this package](https://github.com/ibericode/vat) which handles the connection to the VIES API.

Because the VIES API is notably unreliable and can't handle that many requests, the script throttles requests to a maximum of one request every 5 seconds in the frontend. As this is an API route, it will also be limited by the standard Laravel API rate limit.

Finally, this package also caches the result of VAT validation requests for 1 week by default. This cache time can be changed in the config file (see below).

Configuration
-------------

[](#configuration)

You can publish the config with:

```
php artisan vendor:publish --tag=rapidez-vat-config

```

Translations
------------

[](#translations)

You can publish the translation file with:

```
php artisan vendor:publish --tag=rapidez-vat-translations

```

License
-------

[](#license)

GNU General Public License v3. Please see [License File](LICENSE) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance68

Regular maintenance activity

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~44 days

Recently: every ~38 days

Total

10

Last Release

174d ago

Major Versions

1.1.1 → 3.0.02025-04-10

3.0.0 → 4.0.02025-06-05

3.x-dev → 4.1.02025-09-24

PHP version history (2 changes)1.0.0PHP ^8.1|^8.2

3.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72222911?v=4)[Rapidez](/maintainers/rapidez)[@rapidez](https://github.com/rapidez)

---

Top Contributors

[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (11 commits)")[![Jade-GG](https://avatars.githubusercontent.com/u/32514269?v=4)](https://github.com/Jade-GG "Jade-GG (10 commits)")[![indykoning](https://avatars.githubusercontent.com/u/15870933?v=4)](https://github.com/indykoning "indykoning (1 commits)")

---

Tags

rapidezvat validation

### Embed Badge

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

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

###  Alternatives

[drahosistvan/vatvalidation

A simple wrapper for VIES VAT Validation WebService.

13256.6k](/packages/drahosistvan-vatvalidation)

PHPackages © 2026

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