PHPackages                             ambersive/vatvalidator - 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. ambersive/vatvalidator

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

ambersive/vatvalidator
======================

Wrapper for using the api from https://ec.europa.eu/taxation\_customs/vies/ to validate a vat id.

v0.4.0(5y ago)162.6k2[4 issues](https://github.com/sushidev-team/laravel-vatvalidator/issues)[4 PRs](https://github.com/sushidev-team/laravel-vatvalidator/pulls)MITPHPCI failing

Since Jun 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sushidev-team/laravel-vatvalidator)[ Packagist](https://packagist.org/packages/ambersive/vatvalidator)[ RSS](/packages/ambersive-vatvalidator/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (6)Versions (11)Used By (0)

VAT VALIDATOR
=============

[](#vat-validator)

[![Maintainability](https://camo.githubusercontent.com/ae1d7c98ef978f8f869218e583f6fc9a57e9cc1bfd80c969f0396ffc5c9dba7c/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66336239393564393838323965306461303931372f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/AMBERSIVE/laravel-vatvalidator/maintainability) [![tests](https://github.com/AMBERSIVE/laravel-vatvalidator/workflows/tests/badge.svg)](https://github.com/AMBERSIVE/laravel-vatvalidator/workflows/tests/badge.svg)

Validating the vat id from another company is a requirement within the european union. This package validates the vat id + give you further information about the company behind the vat id. The [CHANGELOG](CHANGELOG.md) offers an overview ob the changes done by us.

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

[](#installation)

```
composer require ambersive/vatvalidator
```

#### Optional: Publish the config

[](#optional-publish-the-config)

```
php artisan vendor:publish --tag=vat-validator
```

Usage
-----

[](#usage)

This package comes with a Facade so using this functionality if easy.

```
use VatValidator;

$result = VatValidator::check("ATU69434329");
```

The result is typed an will return you a [VatCompany](src/Classes/VatCompany.php) Class. This class offers you following methods:

```
$result->isValid(); // Returns a boolean value
$result->getName(); // Returns the company name
$result->getAddress(); // Returns the company address
$result->getCountry(); // Returns the Country code
$result->getNumber(); // Returns the TAX number.
```

### Validation rule

[](#validation-rule)

This package also offers you a validation rule you there would be no need to do all that stuff manually.

```
$validator = Validator::make(['vatid' => 'ATU69434328'], [
    'vatid' => 'vat_eu'
]);
```

Behind the scene
----------------

[](#behind-the-scene)

This package is using the CheckVat Service from the european union to check if a tax id is valid. It is a soap client, so make sure your server is ready for soap class.

Feedback
--------

[](#feedback)

Please feel free to give us feedback or any improvement suggestions.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this package, please send an e-mail to Manuel Pirker-Ihl via . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance25

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.3% 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 ~28 days

Total

7

Last Release

2024d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4183575?v=4)[Rafael Issao](/maintainers/sushidev)[@sushidev](https://github.com/sushidev)

---

Top Contributors

[![leganz](https://avatars.githubusercontent.com/u/3373530?v=4)](https://github.com/leganz "leganz (26 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laravellaravel-packagevalidationvalidatorvat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ambersive-vatvalidator/health.svg)

```
[![Health](https://phpackages.com/badges/ambersive-vatvalidator/health.svg)](https://phpackages.com/packages/ambersive-vatvalidator)
```

###  Alternatives

[illuminate/validation

The Illuminate Validation package.

18838.2M1.7k](/packages/illuminate-validation)

PHPackages © 2026

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