Libraries for the formal control of the Italian VAT ID
Via Composer:
composer require sorciulus/check-partita-iva
<?php
require_once 'vendor/autoload.php';
use sorciulus\PartitaIva\PartitaIva;
$check = new PartitaIva();
$result = $check->setPartitaIva("07973780013")->isValid();
if ($result) {
echo "Partita Iva is formally valid";
} else {
echo "Partita Iva not valid";
}
This Library is released under the MIT License. Please see License File for more information.