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

5.0.0(1mo ago)02.2k↓33.3%1GPL-3.0-or-laterPHPPHP ^8.1

Since Oct 22Pushed 6d 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 1w ago

READMEChangelog (10)Dependencies (4)Versions (15)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

49

—

FairBetter than 94% of packages

Maintenance96

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

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 ~56 days

Recently: every ~72 days

Total

12

Last Release

38d 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

4.2.1 → 5.0.02026-07-10

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

[![Jade-GG](https://avatars.githubusercontent.com/u/32514269?v=4)](https://github.com/Jade-GG "Jade-GG (13 commits)")[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (12 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

[craftcms/commerce

Craft Commerce

240429.5k211](/packages/craftcms-commerce)[drahosistvan/vatvalidation

A simple wrapper for VIES VAT Validation WebService.

13266.6k](/packages/drahosistvan-vatvalidation)

PHPackages © 2026

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