Download the PHP package elvenpath/yii2-eu-vatvalidator without Composer
On this page you can find all versions of the php package elvenpath/yii2-eu-vatvalidator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download elvenpath/yii2-eu-vatvalidator
More information about elvenpath/yii2-eu-vatvalidator
Files in elvenpath/yii2-eu-vatvalidator
Download elvenpath/yii2-eu-vatvalidator
More information about elvenpath/yii2-eu-vatvalidator
Files in elvenpath/yii2-eu-vatvalidator
Vendor elvenpath
Package yii2-eu-vatvalidator
Short Description Yii2 validator for EU VAT numbers
License MIT
Homepage https://github.com/elvenpath/yii2-eu-vatvalidator
Package yii2-eu-vatvalidator
Short Description Yii2 validator for EU VAT numbers
License MIT
Homepage https://github.com/elvenpath/yii2-eu-vatvalidator
Please rate this library. Is it a good library?
Informations about the package yii2-eu-vatvalidator
An Yii2 validator for EU VAT numbers
EU VAT validator for Yii2
based on https://github.com/herdani/vat-validation
About
The
- Validate a VAT number
- Retrieve information like the name or the address of the company
The data is extracted from a European Commission webservice
It ONLY works for European Union countries
Requirements
PHP with Soap enabled
Install
composer require elvenpath/yii2-eu-vatvalidator
Usage
public function rules()
{
return [
[
'vat',
EuVatValidator::className(),
'country_code' => $this->country_code,
],
];
}
You can also populate the model with the company name and address got from the EU database
public function rules()
{
return [
[
'vat',
EuVatValidator::className(),
'country_code' => $this->country_code,
'populate_model' => true,
'model_name_attribute' => 'name',
'model_address_attribute' => 'address'
],
];
}
Disclaimer
Take a look at http://ec.europa.eu/taxation_customs/vies/viesdisc.do to know when/how you're allowed to use this service and his information
All versions of yii2-eu-vatvalidator with dependencies
PHP Build Version
Package Version
The package elvenpath/yii2-eu-vatvalidator contains the following files
Loading the files please wait ....