Download the PHP package davidepastore/codice-fiscale without Composer

On this page you can find all versions of the php package davidepastore/codice-fiscale. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package codice-fiscale

codice-fiscale

Latest version Build Status Coverage Status Quality Score Total Downloads

PSR2 Conformance

A PHP library to calculate and check the italian tax code (codice fiscale).

Read this in Italian.

Install

You can install the library using composer:

How to use

Calculate a codice fiscale

Use the calculator to calculate the codice fiscale.

You can also add an array for additional configuration for the Calculator. Available array keys are:

You can also calculate all codici fiscali that a subject could have (using all 128 available levels).

Check if it is valid

Use the checker to check if the given codice fiscale is ok for the given Subject and additional configuration. The additional configuration array for the Checker has the given available keys:

You can also provide as omocodiaLevel key, the value of Checker::ALL_OMOCODIA_LEVELS that will check for all the possibilities for the given Subject. In the following example, the Subject would not be valid for the given codice fiscale, but it will be so, cause the check will iterate over all the possibilities for the different omocodia levels.

Formal validation

Use the Validator to verify if the given codice fiscale is formally valid. The additional configuration array for the Validator has the given available keys:

Inverse calculation

Use the InverseCalculator to extract birth date, gender and the belfiore code from the given codice fiscale. The additional configuration array for the InverseCalculator has the keys already described for the Validator.

Test

Issues

If you have issues, just open one here.


All versions of codice-fiscale with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1|^8.0
ext-intl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package davidepastore/codice-fiscale contains the following files

Loading the files please wait ....