PHP code example of owowagency / laravel-vatlayer

1. Go to this page and download the library: Download owowagency/laravel-vatlayer 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/ */

    

owowagency / laravel-vatlayer example snippets


'vatlayer' => [
    'key' => env('VATLAYER_KEY'),
    'encrypted' => env('VATLAYER_ENCRYPTED', false)
],

$response = \Vatlayer::validate('NL123456789B01');

// The response looks like: 
$response = [
  'valid' => true,
  'format_valid' => true,
  'query' => 'NL123456789B01',
  'country_code' => 'NL',
  'vat_number' => '855020970B01',
  'company_name' => 'OWOW PROJECTS B.V.',
  'company_address' => ' FUUTLAAN 00014 UNIT E 5613AB EINDHOVEN ',
];

$valid = \Vatlayer::isValidVatNumber('NL123456789B01');