PHP code example of conedevelopment / vies-php
1. Go to this page and download the library: Download conedevelopment/vies-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
conedevelopment / vies-php example snippets
use Cone\Vies\Client;
use Cone\Vies\Model\CheckVatRequest;
use Throwable;
$client = new Client;
try {
$response = $client->api()->checkVatNumber(new CheckVatRequest([
'countryCode' => 'HU',
'vatNumber' => '12345678',
]));
// Handle response
} catch (Throwable $e) {
// Handle exception, report to Sentry etc...
}