2017 © Pedro Peláez
 

library codice-fiscale

A library to calculate and check the validity of the italian fiscal code (codice fiscale)

image

usu/codice-fiscale

A library to calculate and check the validity of the italian fiscal code (codice fiscale)

  • Saturday, November 29, 2014
  • by andreausu
  • Repository
  • 2 Watchers
  • 19 Stars
  • 13,979 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 8 Forks
  • 2 Open issues
  • 12 Versions
  • 14 % Grown

The README.md

CodiceFiscale

A library to calculate and check the validity of the italian fiscal code (codice fiscale)., (*1)

Build Status Latest Stable Version Total Downloads License, (*2)

Requirements

  • php >= 5.4

Installation

Create a composer.json file with the following content:, (*3)

``` json { "require": { "usu/codice-fiscale": "1.0.*" } }, (*4)


Then run ``` bash $ curl -s https://getcomposer.org/installer | php $ php composer.phar install

You should now have CodiceFiscale installed inside your vendor folder: vendor/usu/codice-fiscale, (*5)

And an handy autoload file to include in you project: vendor/autoload.php, (*6)

How to use

``` php <?php require_once DIR . '/vendor/autoload.php';, (*7)

use CodiceFiscale\Calculator; use CodiceFiscale\Checker;, (*8)

$calc = new Calculator(); $calc->calcola('Nome', 'Cognome', 'M', new \DateTime('1992-03-06'), 'F205');, (*9)

$chk = new Checker(); if ($chk->isFormallyCorrect('RSSMRA79S18F205J')) { print('Codice Fiscale formally correct'); printf('Birth Day: %s', $chk->getDayBirth()); printf('Birth Month: %s', $chk->getMonthBirth()); printf('Birth Year: %s', $chk->getYearBirth()); printf('Birth Country: %s', $chk->getCountryBirth()); printf('Sex: %s', $chk->getSex()); } else { print('Codice Fiscale wrong'); }, (*10)


Testing ------- The library is fully tested with PHPUnit. Go to the root folder, install the dev dependencies with composer, and then run the phpunit test suite ``` bash $ composer --dev install $ ./vendor/bin/phpunit

The Versions

29/11 2014

dev-master

9999999-dev http://andreausu.github.com/CodiceFiscale

A library to calculate and check the validity of the italian fiscal code (codice fiscale)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale

29/11 2014

v1.0.4

1.0.4.0 http://andreausu.github.com/CodiceFiscale

A library to calculate and check the validity of the italian fiscal code (codice fiscale)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale

08/11 2014

v1.0.3

1.0.3.0 http://andreausu.github.com/CodiceFiscale

A library to calculate and check the validity of the italian fiscal code (codice fiscale)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale

25/09 2014

dev-composer-update

dev-composer-update http://andreausu.github.com/CodiceFiscale

A library to calculate and check the validity of the italian fiscal code (codice fiscale)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale

25/09 2014

v1.0.2

1.0.2.0 http://andreausu.github.com/CodiceFiscale

A library to calculate and check the validity of the italian fiscal code (codice fiscale)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale

22/09 2014

dev-badges

dev-badges http://andreausu.github.com/CodiceFiscale

A library to calculate the italian fiscal code (codice fiscale)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale

22/09 2014

1.0.1

1.0.1.0 http://andreausu.github.com/CodiceFiscale

A library to calculate the italian fiscal code (codice fiscale)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale

22/09 2014

dev-hhvm-tests

dev-hhvm-tests http://andreausu.github.com/CodiceFiscale

A library to calculate the italian fiscal code (codice fiscale)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale

22/09 2014

v1.0.0

1.0.0.0 http://andreausu.github.com/CodiceFiscale

A library to calculate the italian fiscal code (codice fiscale)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale

19/04 2014

v0.2.1

0.2.1.0 http://andreausu.github.com/CodiceFiscale

A library to calculate the italian fiscal code (codice fiscale)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale

11/03 2014

v0.2

0.2.0.0 http://andreausu.github.com/CodiceFiscale

A library to calculate the italian fiscal code (codice fiscale)

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale

11/03 2014

v0.1

0.1.0.0 http://andreausu.github.com/CodiceFiscale

Codice Fiscale calculator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Andrea Usuelli

php codice fiscale