From 92d74e3369868ef9238d8e7e487c301a4572dcb1 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 1 Oct 2017 01:51:45 +0300 Subject: [PATCH] Update README --- README.md | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 05f0427..d0c9cf5 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,15 @@ [![Software License][ico-license]](LICENSE.md) [![Total Downloads][ico-downloads]][link-downloads] -Yii2 validator, based on [https://github.com/elyby/php-tempmailbuster](https://github.com/elyby/php-tempmailbuster) -library and [https://github.com/elyby/anti-tempmail-repo](https://github.com/elyby/anti-tempmail-repo) reference. -Helps to protect you site from users, who use 10-minutes mail services. +Yii2 validator, based on [daveearley/Email-Validation-Tool](https://github.com/daveearley/Email-Validation-Tool) +to protect your site from users, who use 10-minutes mail services. ## Installation Install the latest version with ```sh -$ composer require "ely/yii2-tempmail-validator:~1.0.0" +$ composer require ely/yii2-tempmail-validator ``` ## Usage @@ -24,22 +23,7 @@ Once the extension is installed, simply use it in your models: public function rules() { return [ - [['email'], \Ely\Yii2\TempmailValidator::className()], - ]; -} -``` - -Also you can configure validator: - -```php -public function rules() -{ - return [ - [['email'], \Ely\Yii2\TempmailValidator::className(), - 'message' => '{attribute} is tempmail. You will not pass', - 'whiteList' => false, - 'secondaryStorage' => ['spam4\.me'], - ], + [['email'], \Ely\Yii2\TempmailValidator::class], ]; } ```