PHP code example of sorciulus / check-partita-iva
1. Go to this page and download the library: Download sorciulus/check-partita-iva 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/ */
sorciulus / check-partita-iva example snippets
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";
}