bespin / datavalidation-taxid
Library to verify tax ids
Installs: 190
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/bespin/datavalidation-taxid
Requires
Requires (Dev)
- phpstan/phpstan: ^2
README
Library to verify tax ids
List of supported countries
Country | Name | Information |
---|---|---|
Germany | Steuerliche Identifikationsnummer | Wikipedia - Steuerliche Identifikationsnummer |
How to use
composer require bespin/datavalidation-taxid
<?php
use Bespin\DataValidation;
if (DataValidation\TaxId::verify('xxx', DataValidation\Country::Germany)) {
echo 'xxx is a valid taxId';
} else {
echo 'xxx is not a valid taxId';
}