예제 #1
0
<?php

require_once '../vendor/autoload.php';
$pIva = new \fdisotto\PartitaIVA('07973780013', 'IT');
if ($pIva->isValid() === true) {
    // exist
}
$pIva = new \fdisotto\PartitaIVA('07973780013');
if ($pIva->isValid() === true) {
    // exist
}
$pIva = new \fdisotto\PartitaIVA('66780129987', 'FR');
if ($pIva->isValid() === true) {
    // exist
}
예제 #2
0
 public function testCheckFalse()
 {
     $pIva = new \fdisotto\PartitaIVA('12015485235', 'IT');
     $this->assertFalse($pIva->isValid());
 }