codelayer/laravel-vat-validator

Validate the format of EU vat numbers.
8,946 3
Install
composer require codelayer/laravel-vat-validator
Latest Version:v1.0.0
PHP:^7.2
License:MIT
Last Updated:Mar 5, 2024
Links: GitHub  ·  Packagist
Maintainer: codelayer

Validate the format of EU VAT identification numbers

Latest Version on Packagist phpunit

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)

5,856 7
prettus/laravel-validation

Laravel Validation Service

11,862,350 406
pixelpeter/laravel5-isocodes-validation

Laravel 5 wrapper for the IsoCodes Validation library from ronanguilloux

87,867 19
skysplit/laravel5-intl-translation

Laravel 5 package for better translation syntax using php-intl extension

106,815 10
propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

43,538,120 3,026