Download the PHP package rechtlogisch/ust-id without Composer
On this page you can find all versions of the php package rechtlogisch/ust-id. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rechtlogisch/ust-id
More information about rechtlogisch/ust-id
Files in rechtlogisch/ust-id
Package ust-id
Short Description Validates the German VAT-ID (Umsatzsteuer-Identifikationsnummer)
License MIT
Homepage https://github.com/rechtlogisch/ust-id
Informations about the package ust-id
ust-id
Validates the German VAT-ID (Umsatzsteuer-Identifikationsnummer, short: USt-ID)
Check digit (last digit) is validated based on ISO/IEC 7064, MOD 11,10 as documented within the meanwhile repealed "Datenträger-Verordnung über die Abgabe Zusammenfassender Meldungen – ZMDV" dated 13.05.1993 (BGBl. I S. 736).
[!NOTE] This package validates solely the syntax and check digit of the provided input. It does not confirm, that the provided USt-ID was assigned to an entrepreneur. Please use the official VIES service for that.
Installation
You can install the package via composer:
Usage
or
Validation errors
You can get a list of errors explaining why the provided input is invalid. The validate()
method returns a DTO with a getErrors()
method.
[!NOTE] The keys of
getErrors()
hold the stringified reference to the exception class. You can check for a particular error by comparing to the ::class constant. For example:Rechtlogisch\UstId\Exceptions\InvalidUstIdLength::class
.
or
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Credits
- Krzysztof Tomasz Zembrowski
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of ust-id with dependencies
ext-mbstring Version *