Skip to content

Libraries for the formal control of the Italian VAT ID

License

Notifications You must be signed in to change notification settings

sorciulus/check-partita-iva

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check-partita-iva

Packagist Build Status Scrutinizer Code Quality Code Climate Issue Count Software License

Libraries for the formal control of the Italian VAT ID

Installation

Via Composer:

composer require sorciulus/check-partita-iva

Usage

<?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";
}   

License

This Library is released under the MIT License. Please see License File for more information.