2017 © Pedro Peláez
 

library vatin-validator

A PHP library for for validating VAT identification numbers (VATINs).

image

ricardonavarrom/vatin-validator

A PHP library for for validating VAT identification numbers (VATINs).

  • Saturday, October 15, 2016
  • by ricardonavarrom
  • Repository
  • 1 Watchers
  • 1 Stars
  • 41 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

VATINValidator

Build Status Coverage Status Total Downloads SensioLabsInsight, (*1)

A PHP library for for validating VAT identification numbers (VATINs)., (*2)

Installation

This library is available on Packagist., (*3)

You can install this library using composer, (*4)

$ composer require ricardonavarrom/vatin-validator

or add the package to your composer.json file directly., (*5)

Basic usage

This library provides multiple located validators (view availables locales section)., (*6)

$vatin = '56475114V';
$locatedValidator = new VATINValidatorES();
$vatinIsValid = $locatedValidator->validate($vatin);

Some located validators provides specials validations methods for its country., (*7)

$nif = '75096482X';
$nie = 'Z4503838Y';
$cif = 'A83472787';
$locatedValidator = new VATINValidatorES();
$nifIsValid = $locatedValidator->validateNIF($nif);
$nieIsValid = $locatedValidator->validateNIE($nie);
$cifIsValid = $locatedValidator->validateCIF($cif);

Availables locales

| Locale | Country | Local name | | ------------- | ------------------| -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | es | Spain | Número de Identificación Fiscal (for freelancers or singular persons), Número de Identidad de Extranjero (for foreigners) or Código de Identificación Fiscal (for companies) | | pt | Portugal | Número de identificação fiscal (for freelancers or singular persons) or Número de Identificação de Pessoa Colectiva (for companies) | We are working to implement more availables locales., (*8)

The Versions

15/10 2016

dev-master

9999999-dev https://github.com/ricardonavarrom/VATINValidator

A PHP library for for validating VAT identification numbers (VATINs).

  Sources   Download

MIT

The Development Requires

by Ricardo Navarro Moral

php validation vat php library vat validation vat identification numbers

15/10 2016

1.1.2

1.1.2.0 https://github.com/ricardonavarrom/VATINValidator

A PHP library for for validating VAT identification numbers (VATINs).

  Sources   Download

MIT

The Development Requires

by Ricardo Navarro Moral

php validation vat php library vat validation vat identification numbers

09/10 2016

1.1.1

1.1.1.0 https://github.com/ricardonavarrom/VATINValidator

A PHP library for for validating VAT identification numbers (VATINs).

  Sources   Download

MIT

The Development Requires

by Ricardo Navarro Moral

php validation vat php library vat validation vat identification numbers

09/10 2016

1.0.1

1.0.1.0 https://github.com/ricardonavarrom/VATINValidator

A PHP library for for validating VAT identification numbers (VATINs).

  Sources   Download

MIT

The Development Requires

by Ricardo Navarro Moral

php validation vat php library vat validation vat identification numbers

25/09 2016

1.0.0

1.0.0.0 https://github.com/ricardonavarrom/VATINValidator

A PHP library for for validating VAT identification numbers (VATINs).

  Sources   Download

MIT

The Development Requires

by Ricardo Navarro Moral

php validation vat php library vat validation vat identification numbers