PHPackages                             hantless/simple-vat - 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. hantless/simple-vat

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

hantless/simple-vat
===================

Simple package to check European's VAT number format

0.0.3(8y ago)021MITPHP

Since Dec 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hantless/simple-vat)[ Packagist](https://packagist.org/packages/hantless/simple-vat)[ RSS](/packages/hantless-simple-vat/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (4)Used By (0)

Laravel Simple VAT
==================

[](#laravel-simple-vat)

Laravel Simple VAT is a small library to check format of European VAT number.

It's mainly a curated version of the [Laravel VAT](https://packalyst.com/packages/package/dannyvankooten/laravel-vat) package, removing the SOAP call for existence.

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

[](#installation)

Simply require the project using [Composer](https://getcomposer.org):

```
$ composer require hantless/simple-vat
```

Once Simple VAT is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

- `Hantless\SimpleVat\SimplevatServiceProvider::class`

Or if you're using Laravel 5.5+, it should auto discover the package.

Usage
-----

[](#usage)

Use the validation rule "vat\_format" in your formRequest:

```
/**
 * Get the validation rules that apply to the request.
 *
 * @return array
*/
public function rules()
{
    return [
        'vatnumberfield' => 'vat_format',
    ];
}
```

or in your validator:

```
 public function store(Request $request)
{
    $validator = Validator::make($request->all(), [
        'vatnumberfield' => 'vat_format',
    ]);

    if ($validator->fails()) {
        // redirect ... display error
    }

    // store entity...
}
```

Add the error message in your translation files (resources/lang/{lang}/validation.php)

```
'vat_format' => 'The :attribute do not seem to be a valid VAT number',
```

License
-------

[](#license)

Laravel Simple VAT is licensed under [The MIT License(MIT)](LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Total

3

Last Release

3055d ago

### Community

Maintainers

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

---

Tags

laravelcheckformatvat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hantless-simple-vat/health.svg)

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

###  Alternatives

[proengsoft/laravel-jsvalidation

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

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[sunspikes/clamav-validator

Custom Laravel 5 anti-virus validator for file uploads.

3651.8M3](/packages/sunspikes-clamav-validator)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[danielebarbaro/laravel-vat-eu-validator

A simple package that validates EU VAT numbers against the central ec.europa.eu database

37369.4k](/packages/danielebarbaro-laravel-vat-eu-validator)

PHPackages © 2026

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