This library provides validations for Spanish VAT numbers in PHP.
Although VAT numbers for individuals and organizations are all legally referred as "Número de Identificación Fiscal" (NIF), they still follow different algorithms for their control digits.
Please, check the specific documentation for each validation type:
- Validation of Spanish VAT Numbers for Individuals (NIF/NIE)
- Validation of Spanish VAT Numbers for Organizations (CIF)
This library has no production dependencies but its development is supported by the following ones:
Dependency | Version |
---|---|
Pest | ^2.34 |
Laravel Pint | ^1.15 |
Psysh | ^0.12 |
composer lint
# or vendor/bin/pint
composer test
# or vendor/bin/pest
composer repl
# or vendor/bin/psysh