PHP code example of sunkaflek / vies-parser
1. Go to this page and download the library: Download sunkaflek/vies-parser 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/ */
sunkaflek / vies-parser example snippets
use ViesParser\ViesParser;
dress = "Havenlaan 2\n1080 Sint-Jans-Molenbeek";
$vat = 'BE0462920226';
$parsed_address = $parser->get_parsed_address($vat, $address);
if ($parsed_address) {
var_dump($parsed_address);
} else {
echo 'cant parse yet';
}
$parser->get_parsed_address($vat, $address, ['sk_delete_mc']);