PHP code example of firmaprofesional / tin-validator-bridge
1. Go to this page and download the library: Download firmaprofesional/tin-validator-bridge 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/ */
firmaprofesional / tin-validator-bridge example snippets
$result = EuropeanTinValidatorService::checkTin('99999999R', 'ES');
var_dump($result);
array(5) {
'countryCode' =>
string(2) "ES"
'tinNumber' =>
string(9) "99999999R"
'requestDate' =>
string(16) "2018-05-24+02:00"
'validStructure' =>
bool(true)
'validSyntax' =>
bool(true)
}
$result = EuropeanTinValidatorService::isValidTin('99999999R', 'ES');
var_dump($result);
true