PHP code example of csoellinger / eu-check-vat-service

1. Go to this page and download the library: Download csoellinger/eu-check-vat-service 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/ */

    

csoellinger / eu-check-vat-service example snippets




use EuCheckVatService\CheckVat;

// Full check (Return name and address if registered)
print_r((new CheckVat())->exec('AT', 'U65923833', true));

// Simple Check (Return only true or false)
var_dump((new CheckVat())->exec('AT', 'U65923833'));

php -S localhost:8000