lfbellante / vies
This package controls the vat id in VIES system and returns company information if exist.
Installs: 1 381
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
README
Vies is a laravel library for check the vat Id of Italy companies.
Installation
Use the following command to install vies.
composer require lfbellante/vies
Next, you should publish the Vies configuration file using the vendor:publish Artisan command. The vies configuration file will be placed in your application's config directory.
# Publish config file
php artisan vendor:publish --tag=vies
Usage
Vies::checkVat('VAT Number', 'Country Code, default IT');
Response
{ "vatId": "00488410010", "companyName": "TIM S.P.A.", "address": { "street": "VIA GAETANO NEGRI 1 ", "city": "MILANO", "province": "MI", "postalCode": "20123" } }
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.