Download the PHP package amondi-media/laravel-evatr without Composer
On this page you can find all versions of the php package amondi-media/laravel-evatr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amondi-media/laravel-evatr
More information about amondi-media/laravel-evatr
Files in amondi-media/laravel-evatr
Package laravel-evatr
Short Description Laravel package for validating German and EU VAT identification numbers using the official German Federal Central Tax Office (Bundeszentralamt für Steuern) online service
License MIT
Informations about the package laravel-evatr
VAT Validator
Laravel package for validating German and EU VAT identification numbers using the official German Federal Central Tax Office (Bundeszentralamt für Steuern) online service
Requirements
- PHP 8.1 or higher
- Laravel 10.x or 11.x
- Guzzle HTTP Client
Installation
You can install the package via composer:
The package will automatically register its service provider.
Usage
Validation Rule
You can use the VAT validation rule in your validation rules:
Using the Validation Rule Extension
You can also use the validation rule extension:
The validation rule extension also supports validating country code and VAT number separately:
Configuration
The package uses the German eVatR service by default. You can publish the configuration file:
This will create a vat_validator.php
file in your config directory.
Environment Configuration
Add the following variable to your .env
file:
EVATR_REQUESTER_VAT_ID
: Your German VAT identification number (Umsatzsteuer-Identifikationsnummer) that will be used as the requester in the eVatR API calls.
The package also includes these default configurations:
- API URL: https://evatr.bff-online.de/
- Request timeout: 10 seconds
License
GNU General Public License. Please see License File for more information.
All versions of laravel-evatr with dependencies
illuminate/support Version ^10.0|^11.0
illuminate/validation Version ^10.0|^11.0
illuminate/http Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.0