Quantcast
Channel: Live News for Yii Framework
Viewing all articles
Browse latest Browse all 3375

[extension] mahkali/yii2-bsnvalidator

$
0
0

yii2-bsnvalidator

  1. Installation
  2. Usage
  3. License

This extension provides BSN (Burger Service Nummer) validation for Yii Framework 2.0.

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require mahkali/yii2-bsnvalidator "@dev"

or add

"mahkali/yii2-bsnvalidator": "@dev"

to the `require` section of your composer.json file.

Usage

BsnValidator
// add this in your model
use mahkali\validators\BsnValidator;

// use the validator in your model rules
public function rules() {
    return [
       	['bsn', BsnValidator::class],
    ];
}

License

yii2-bsnvalidator is released under the MIT License. See the bundled LICENSE.md for details.


Viewing all articles
Browse latest Browse all 3375

Trending Articles