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(8mo ago)02.0k↓54.1%1GPL-3.0-or-laterPHPPHP ^8.1

Since Oct 22Pushed 1mo 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 today

READMEChangelog (8)Dependencies (2)Versions (12)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

44

—

FairBetter than 90% of packages

Maintenance77

Regular maintenance activity

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

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

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

240425.8k185](/packages/craftcms-commerce)[drahosistvan/vatvalidation

A simple wrapper for VIES VAT Validation WebService.

13264.3k](/packages/drahosistvan-vatvalidation)

PHPackages © 2026

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