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

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

jbohme/vat-validator
====================

A PHP package to validate VAT numbers for all countries.

1.0.0(2y ago)074MITPHPPHP 8.\*

Since Feb 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jbohme/PHP-VatValidator)[ Packagist](https://packagist.org/packages/jbohme/vat-validator)[ RSS](/packages/jbohme-vat-validator/feed)WikiDiscussions master Synced 1mo ago

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

PHP - VAT Validator
===================

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

A PHP package to validate VAT numbers for all countries.

Support for:

CountryCode(ISO 3166-1 alpha-2)Natural PersonLegal PersonBrazilBRCPFCNPJInstallation
------------

[](#installation)

Run in your project:

```
composer require jbohme/vat-validator
```

Usage
-----

[](#usage)

Simply use the helper functions for natural or legal persons. Pass the desired country code as the first parameter and then the document string.

```
