Download the PHP package rechtlogisch/steuer-id without Composer
On this page you can find all versions of the php package rechtlogisch/steuer-id. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rechtlogisch/steuer-id
More information about rechtlogisch/steuer-id
Files in rechtlogisch/steuer-id
Package steuer-id
Short Description Validates the German Tax-ID (Steuerliche Identifikationsnummer)
License MIT
Homepage https://github.com/rechtlogisch/steuer-id
Informations about the package steuer-id
steuer-id
Validates the German Tax-ID (Steuerliche Identifikationsnummer)
Based on the official ELSTER documentation (chapter: 2; as of 2025-02-24).
[!NOTE] This package validates solely the syntax and check digit of the provided input. It does not confirm, that the validated Steuer-ID was assigned to a person. Please contact the Bundeszentralamt für Steuern in case you are unsure about your Steuer-ID.
Installation
You can install the package via composer:
Usage
or
Test-Steuer-IDs
Support for test Steuer-IDs (starting with 0
) is enabled by default. Test Steuer-IDs are typically invalid in production. It is recommended to disable them with the following environment variable:
or in PHP:
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 steuer-id with dependencies
ext-mbstring Version *