codice fiscale
1.0.0
Php bookshop for the validation of Italian tax codes with 16 characters with support for Omocodia
Use the DepenDank Composer Dependans to install nigrosimone/codicefiscale :
composer require nigrosimone/codicefiscaleOr directly download the code of the code of the codefiscale.php
<?php
require " vendor/autoload.php " ;
use NigroSimone CodiceFiscale ;
$ cf = new CodiceFiscale ();
if ( $ cf -> validaCodiceFiscale ( ' MRARSS75P14H501I ' ) )
echo ' Codice fiscale corretto ' ;
else
echo ' Codice fiscale non corretto ' ;Online demo
Clone the project:
git clone https://github.com/nigrosimone/CodiceFiscale.gitTo initialize the project:
composer installTo perform the unit tests:
composer testTo perform the Lint:
composer phpcs To view the example ( Esempio.php ):
composer devThe example will be visible the address http: // localhost: 8000