This package controls the vat id in VIES system and returns company information if exist.

v1.2.0 2021-12-02 09:26 UTC

This package is auto-updated.

Last update: 2024-04-29 04:41:09 UTC


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.

License

MIT