jimmlog/yii2-disposable-email-validator

Yii2 disposable email validator

1.0.1 2016-05-17 09:12 UTC

This package is auto-updated.

Last update: 2024-10-29 00:43:46 UTC


README

This library contains validator for block email from disposable domains with Yii framework 2.0.

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist jimmlog/yii2-disposable-email-validator

or add

"jimmlog/yii2-disposable-email-validator": "@stable"

to the require section of your composer.json.

How To Use

This validator is additional validator for Yii2 core "email" validator. Example of use:

    class FormModel extend \yii\base\Model
    {
    ...
        /**
         * @inheritdoc
         */
        public function rules()
        {
        ...
            [['email'], 'email'],
            [['email'], \jimmlog\yii2\DisposableEmailValidator::className()],
        ...
        }
    ...
    }

License

The MIT License (MIT). See LICENSE file.