Download the PHP package danielebarbaro/laravel-vat-eu-validator without Composer
On this page you can find all versions of the php package danielebarbaro/laravel-vat-eu-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download danielebarbaro/laravel-vat-eu-validator
More information about danielebarbaro/laravel-vat-eu-validator
Files in danielebarbaro/laravel-vat-eu-validator
Package laravel-vat-eu-validator
Short Description A simple package that validates EU VAT numbers against the central ec.europa.eu database
License MIT
Homepage https://github.com/danielebarbaro/laravel-vat-eu-validator
Informations about the package laravel-vat-eu-validator
Laravel VAT EU VALIDATOR
laravel-vat-eu-validator is a package inspired from vat.php to validate a VAT number for businesses based in Europe.
For Laravel 10,11 use tag 2.x
For Laravel 8,9 use tag 1.20
For Laravel 5,6,7 use tag 0.5.4
Installation
You can install the package via composer:
The package will automatically register itself.
Usage
Validation
The package registers two new validation rules.
vat_number
The field under validation must be a valid and existing VAT number.
vat_number_exist
The field under validation check id is an existing VAT number.
vat_number_format
The field under validation must be a valid VAT number.
Alternatively, you can also use the Rule
directly.
or
or
Translations
Most of the displayed strings are defined in the vatEuValidator::validation
translation files. The package ships with a few supported locales, but if yours is not yet included we would greatly appreciate a PR.
If not already published, you can edit or fill the translation files using php artisan vendor:publish --tag=laravel-vat-eu-validator-lang
, this will copy our translation files to your app's vendor/laravelVatEuValidator
"lang" path.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
Contributors
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
All versions of laravel-vat-eu-validator with dependencies
ext-soap Version *
ext-openssl Version *
illuminate/contracts Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0