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)152.5k2[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 1mo ago

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

33

—

LowBetter than 75% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

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

1977d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80b1e9efacc425a65161eda871719db5a51d598f46e3afc5455009a889c1483a?d=identicon)[sushidev](/maintainers/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

[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[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)

PHPackages © 2026

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