Download the PHP package rechtlogisch/wirtschafts-id without Composer
On this page you can find all versions of the php package rechtlogisch/wirtschafts-id. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rechtlogisch/wirtschafts-id
More information about rechtlogisch/wirtschafts-id
Files in rechtlogisch/wirtschafts-id
Package wirtschafts-id
Short Description Validates the German Wirtschafts-ID (Wirtschafts-Identifikationsnummer)
License MIT
Homepage https://github.com/rechtlogisch/wirtschafts-id
Informations about the package wirtschafts-id
wirtschafts-id
Validates the German Wirtschafts-ID (Wirtschafts-Identifikationsnummer)
Check digit (eleventh position in normalised form) 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 Wirtschafts-ID was assigned to an entity. Please consult BZSt, if in doubt. Some insight concerning validity might be concluded based on VIES.
Installation
You can install the package via composer:
Usage
or
Unterscheidungsmerkmal, short: U-Merkmal
This package supports both validation of the Wirtschafts-ID with and without the Unterscheidungsmerkmal. It is optional information after the eleventh character and separator. It consists of a hyphen and a five-digit number.
[!NOTE] Unterscheidungsmerkmal starts at
00001and therefore00000is not valid.[!TIP] At first all entities will receive a Wirtschafts-ID with the Unterscheidungsmerkmal
-00001. If needed, as of 4th quarter of 2027 each economic activity (wirtschaftliche Tätigkeit) will receive a separate Unterscheidungsmerkmal, which will be incremented by one for each economic activity and linked to a tax number of the business or the permanent establishment within the responsible tax office (cf. bzst.de).Source: BZSt
[!TIP] Based on the form/dataset you might need to provide the Unterscheidungsmerkmal or not.
Examples
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\WirtschaftsId\Exceptions\InvalidWirtschaftsIdWithoutUnterscheidungsmerkmalLength::class.
or
Plausibility hints
You can get a list of hints explaining why the provided input is not plausible. Hints do not change the validation result. The validate() method returns a DTO with a getHints() method.
[!NOTE] The keys of
getHints()hold the stringified reference to the exception class. You can check for a particular error by comparing to the ::class constant. For example:Rechtlogisch\WirtschaftsId\Exceptions\UnterscheidungsmerkmalShouldBe00001BeforeYear2027::class.[!TIP] You can of course use the alternative way of validation presented in the Usage section.
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 wirtschafts-id with dependencies
ext-mbstring Version *