mahkali/yii2-bsnvalidator BSN validator for Yii Framework 2.0

yii2-bsnvalidator

  1. Installation
  2. Usage
  3. Translations
  4. License

Latest Stable Version Total Downloads Latest Unstable Version 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

composer require mahkali/yii2-bsnvalidator

or add

"mahkali/yii2-bsnvalidator": "^1.1"

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

Usage

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

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

Translations

You could set the message attribute. Or - add your language to the package:

Edit:

@vendor/mahkali/yii2-bsnvalidator/src/messages/config.php

Add your language.

Run:

./yii message @vendor/mahkali/yii2-bsnvalidator/src/messages/config.php

Edit your message file in

@vendor/mahkali/yii2-bsnvalidator/src/messages/xx/bsnvalidator.php

And make a PR :) Thank you very much.

License

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

0 0
1 follower
12 downloads
Yii Version: Unknown
License: MIT
Category: Validation
Developed by: Maarten van Middelaar
Created on: Sep 18, 2018
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions