hubipe / company-identifiers
Library aims to validate national identifiers formats and VAT numbers formats of companies and business individuals.
Requires
- php: ^7.1 || ^8.0
- antalaron/vat-number-validator: ^1.2
- consistence-community/consistence: ~1.0 || ~2.0
- nette/utils: ^2.3 || ^3.0 || ^4.0
README
Library aims to validate national identifiers formats and VAT numbers formats of companies and business individuals. The library does not validate actual existence of company with given ID nor the VAT registration in the registers. It purely validates the formats.
The library contains methods to validate format of these business identifiers plus for all the countries also the VAT number format:
- ✔️ check number implemented
- ❌ the identifier does not contain the check number
- ⚠️ identifier contain check number, the algorithm is not known by library
- ❓ identifier check number presence is unknown
The check number is not available in all formats or it has not been implemented yet. If you know the algorithm for the check number calculation and the library does not contain the check validation, feel free to create issue or PR.
Also if you know any other country or company ID/business individuals identifier formats/check digits algorithms, create an issue with link to relevant source or create a pull request.
Installation
composer require hubipe/company-identifiers