Download the PHP package ricardonavarrom/vatin-validator-bundle without Composer
On this page you can find all versions of the php package ricardonavarrom/vatin-validator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ricardonavarrom/vatin-validator-bundle
More information about ricardonavarrom/vatin-validator-bundle
Files in ricardonavarrom/vatin-validator-bundle
Package vatin-validator-bundle
Short Description A Symfony bundle for for validating VAT identification numbers (VATINs).
License MIT
Homepage https://github.com/ricardonavarrom/VATINValidatorBundle
Informations about the package vatin-validator-bundle
VATINValidatorBundle
A Symfony bundle for for validating VAT identification numbers (VATINs) based on VATINValidator PHP library.
Installation
This bundle is available on Packagist.
You can install this bundle using composer
or add the package to your composer.json file directly.
After you have installed the package, you just need to add the bundle to your AppKernel.php file:
Configuration
VATINValidatorBundle requires no initial configuration to get you started.
Basic usage
The configured validator is available as _ricardonavarrom.vatinvalidator service. You must assign a valid locale (view availables locales section).
Another option is to use a located validator service as _ricardonavarrom.vatinvalidator.es (view availables locales section).
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.
Constraints
VATINValidatorBundle provides the following constraints:
Constraint | Country | Options |
---|---|---|
VATINEsConstraint | Spain | message: string (default: 'The VATIN "%vatin%" is not a valid "%validationModality%".'). allowLowerCase: boolean (default: true). validationModality: 'NIF', 'NIE' or 'CIF' (by default checks in all validation modalities). |
VATINPtConstraint | Portugal | message: string (default: 'The VATIN "%vatin%" is not a valid "%validationModality%".'). validationModality: 'NIF' or 'NIPC' (by default checks in all validation modalities). |
For example:
All versions of vatin-validator-bundle with dependencies
symfony/console Version >=2.8,<4.0
symfony/monolog-bundle Version ^2.4
sensio/distribution-bundle Version ^5.0
sensio/framework-extra-bundle Version ^3.0.2
incenteev/composer-parameter-handler Version ^2.0
ricardonavarrom/vatin-validator Version 1.*