New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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
Laravel:5 · 6 · 7
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

jairforo/php-vat-checker

PHP VAT checker based on the European Commission web service

4,675 1
mpociot/vat-calculator

EU VAT calculation, the way it should be.

4,674,413 1,285
cboxdk/laravel-tax

Cbox Tax — a self-hostable consumption-tax engine for Laravel: it owns the calcu...

1,190 2
claraleigh/naughty-username

Validate that a username is not a naughty one

24,243 0
cohensive/validation

Extra functionality for Laravel 5 Validator.

13,938 14

Version History

Version Released PHP Laravel License
v1.0.0 ^7.2 ^5.8|^6.0|^7.0 MIT