andreag / yii2-codicefiscale-validator
module-starter Module for Sharkom Intranet
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
This package is auto-updated.
Last update: 2025-06-28 04:02:45 UTC
README
Install the module on the main yii2 app
cd /path/to/yii2/instalation
composer require andreag/yii2-codicefiscale-validator
Load the module in yii2
Edit the file backend/config/main.php
add in the modules section:
'modules' => [
'codicefiscale' => [
'class' => 'andreag\codicefiscale\Module',
],
],
Import the db in sql/geografia.sql
Usage: In the rules of your model add:
['codice_fiscale', 'andreag\codicefiscale\CodiceFiscaleValidator', 'nome'=>'nome', 'cognome'=>"cognome", 'data'=>'data_nascita', "sesso"=>"sesso", 'comune'=>"luogo_nascita", 'provincia'=>"provincia_nascita"]
Based on the developments by Michele Brodoloni