codelayer/laravel-vat-validator
Validate the format of EU VAT identification numbers
This package can be used to validate EU VAT identification numbers such as DE123456789.
You can install the package using composer:
composer require codelayer/laravel-vat-validator
Translations
If you wish to customize the package's translation, you can publish the translation files:
php artisan vendor:publish --provider="Codelayer\VatValidator\VatValidatorServiceProvider"
Usage
Simply use the VatFormat rule inside your rules array, e.g. in a form request:
use Codelayer\VatValidator\Rules\VatFormat;
public function rules()
{
return [
'vat_number' => ['required', new VatFormat()],
];
}
About Us
codelayer is a web development agency based in Karlsruhe, Germany. This package was developed for use in our product likvi.
License
The MIT License (MIT).
Related Packages
corecave/laravel-zatca
Laravel package for ZATCA e-invoicing integration (Saudi Arabia Phase 2)
6,382
7
propaganistas/laravel-phone
Adds phone number functionality to Laravel based on Google's libphonenumber API.
45,012,408
3,039
proengsoft/laravel-jsvalidation
Validate forms transparently with Javascript reusing your Laravel Validation Rul...
2,476,565
1,141
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.0 | ^7.2 | ^5.8| | MIT |