mipotech / yii2-israeli-id-validator
Yii2 Israeli ID Validator
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2025-03-20 18:08:45 UTC
README
Yii2 Israeli ID Validator
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist mipotech/yii2-israeli-id-validator "*"
or add
"mipotech/yii2-israeli-id-validator": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply add to a model's validation rules as follows:
use mipotech\yii2israelidvalidator\IsraeliIdValidator; class MyModel extends Model { ... public $tz; ... public function rules() { return [ ... ['tz', IsraeliIdValidator::className()], ... ]; } }