PHPackages                             eufaturo/vat-number-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. eufaturo/vat-number-validator

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

eufaturo/vat-number-validator
=============================

PHP Vat Number Validator

15.9k↑507.1%[1 PRs](https://github.com/eufaturo/vat-number-validator/pulls)PHPCI passing

Since Feb 7Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/eufaturo/vat-number-validator)[ Packagist](https://packagist.org/packages/eufaturo/vat-number-validator)[ RSS](/packages/eufaturo-vat-number-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

PHP Vat Number Validator
------------------------

[](#php-vat-number-validator)

[![GitHub Tests Action Status](https://github.com/eufaturo/vat-number-validator/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/eufaturo/vat-number-validator/actions?query=workflow%3Atests)[![GitHub Code Analysis Action Status](https://github.com/eufaturo/vat-number-validator/actions/workflows/code-analysis.yml/badge.svg?branch=main)](https://github.com/eufaturo/vat-number-validator/actions?query=workflow%3Acode-analysis)[![Software License](https://camo.githubusercontent.com/fd969ee1f7d88298162a9b2321beac4282905c0731e55ae000ec578487ad82d1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f657566617475726f2f7661742d6e756d6265722d76616c696461746f723f6c6162656c3d4c6963656e7365)](https://opensource.org/licenses/MIT)[![Latest Version on Packagist](https://camo.githubusercontent.com/da5471e5a5a164f7a4a66f116bdeedc83ab796fe6c212545db91ac24d1b2cbf2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f657566617475726f2f7661742d6e756d6265722d76616c696461746f722e7376673f6c6162656c3d5061636b6167697374)](https://packagist.org/packages/eufaturo/vat-number-validator)[![Total Downloads](https://camo.githubusercontent.com/cc6ed5fc383c7990396f043d47ebd69ccf970eb393ef19be093e184d37e81da0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f657566617475726f2f7661742d6e756d6265722d76616c696461746f722e7376673f6c6162656c3d446f776e6c6f616473)](https://packagist.org/packages/eufaturo/vat-number-validator)

Introduction
------------

[](#introduction)

This is a simple yet modern PHP library to validate VAT numbers.

The API is overall simple and returns a `true` or `false` boolean.

Code Samples
------------

[](#code-samples)

In order to use this library, you simply need to import and initialize the `VatNumberValidator` class.

Then just call the `validate` method and pass the VAT number you want to validate as it's sole argument.

```
