PHPackages                             codelayer/laravel-vat-validator - 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. codelayer/laravel-vat-validator

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

codelayer/laravel-vat-validator
===============================

Validate the format of EU vat numbers.

v1.0.0(6y ago)38.9k2[1 PRs](https://github.com/codelayerhq/laravel-vat-validator/pulls)MITPHPPHP ^7.2

Since Feb 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/codelayerhq/laravel-vat-validator)[ Packagist](https://packagist.org/packages/codelayer/laravel-vat-validator)[ RSS](/packages/codelayer-laravel-vat-validator/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Validate the format of EU VAT identification numbers
====================================================

[](#validate-the-format-of-eu-vat-identification-numbers)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cde4a4b2e895ec60dc7bb9d8456377dc78e33102086019a6d48aa0d4b8218883/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656c617965722f6c61726176656c2d7661742d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codelayer/laravel-vat-validator) [![phpunit](https://github.com/codelayerhq/laravel-vat-validator/workflows/phpunit/badge.svg?branch=master)](https://github.com/codelayerhq/laravel-vat-validator/workflows/phpunit/badge.svg?branch=master)

This package can be used to validate EU VAT identification numbers such as `DE123456789`.

You can install the package using composer:

```
composer require codelayer/laravel-vat-validator
```

### Translations

[](#translations)

If you wish to customize the package's translation, you can publish the translation files:

```
php artisan vendor:publish --provider="Codelayer\VatValidator\VatValidatorServiceProvider"
```

Usage
-----

[](#usage)

Simply use the `VatFormat` rule inside your rules array, e.g. in a form request:

```
use Codelayer\VatValidator\Rules\VatFormat;

public function rules()
{
    return [
        'vat_number' => ['required', new VatFormat()],
    ];
}
```

About Us
--------

[](#about-us)

[codelayer](https://codelayer.de) is a web development agency based in Karlsruhe, Germany. This package was developed for use in our product [likvi](https://likvi.de).

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

Unknown

Total

1

Last Release

2281d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f04d4e2cb7a74a716a094852915a387214f7f303914284c3655f9a060ed9efc?d=identicon)[codelayer](/maintainers/codelayer)

---

Top Contributors

[![tobiasdierich](https://avatars.githubusercontent.com/u/20173900?v=4)](https://github.com/tobiasdierich "tobiasdierich (4 commits)")[![mawalu](https://avatars.githubusercontent.com/u/2027387?v=4)](https://github.com/mawalu "mawalu (1 commits)")

---

Tags

financelaravelphpvalidationvatlaravelvalidationvattaxeu

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codelayer-laravel-vat-validator/health.svg)

```
[![Health](https://phpackages.com/badges/codelayer-laravel-vat-validator/health.svg)](https://phpackages.com/packages/codelayer-laravel-vat-validator)
```

###  Alternatives

[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M106](/packages/propaganistas-laravel-phone)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

759569.4k13](/packages/wendelladriel-laravel-validated-dto)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[illuminatech/validation-composite

Allows uniting several validation rules into a single one for easy re-usage

184485.5k](/packages/illuminatech-validation-composite)

PHPackages © 2026

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