nsept/yii2-birthday-picker A Yii2 widget extension that allows you to easily create birthday form field

extensionwidgetpickerdatebirthday

Yii2 Birthday Picker

example

A Yii2 widget extension that allows you to easily create birthday form field.

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist nsept/yii2-birthday-picker "*"

or add

"nsept/yii2-birthday-picker": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by:

// model
public function rules()
{
    return [
        ['birthday', 'required'],
        ['birthday', \nsept\birthdaypicker\BirthdayValidator::className()],
    ];
}

// view
<?= \nsept\birthdaypicker\BirthdayPickerWidget::widget([
    'form'      => $form,
    'model'     => $model,
    'attribute' => 'birthday'
]) ?>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



MIT license
Stats
1 github stars & 3 github forks
4 downloads in the last day
55 downloads in the last 30 days
8821 total downloads