2017 © Pedro Peláez
 

library email-checker

Laravel Package To Validate If An Email Address Exists Without Sending An Email

image

tintnaingwin/email-checker

Laravel Package To Validate If An Email Address Exists Without Sending An Email

  • Monday, June 18, 2018
  • by TintNaingWinn
  • Repository
  • 2 Watchers
  • 9 Stars
  • 204 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 8 Versions
  • 26 % Grown

The README.md

Validate Email for Laravel

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

Notice - That extracts the MX records from the email address and connect with the mail server to make sure the mail address accurately exist. So it may be slow loading time in local and some co-operate MX records take a long time., (*2)

You can install the package via composer:, (*3)

composer require tintnaingwin/email-checker

The package will automatically register itself., (*4)

Translations

If you wish to edit the package translations, you can run the following command to publish them into your resources/lang folder, (*5)

php artisan vendor:publish --provider="Tintnaingwin\EmailChecker\EmailCheckerServiceProvider"

Features

This package supports:, (*6)

  • Validate with SMTP
  • Support for Disposable Email

Usage

Form Request Validation

To add 'email_checker' at email attribute, (*7)

    // [your site path]/app/Http/Requests/RegisterRequest.php
    public function rules()
    {
        return [
               'name' => 'required|string|max:255',
               'email' => 'required|string|email|max:255|unique:users|email_checker',
               'password' => 'required|string|min:6|confirmed',
        ];
    }

In a RegisterController

    // [your site path]/app/Http/Controllers/Auth/RegisterController.php
    protected function validator(array $data)
    {
        return Validator::make($data, [
            'name' => ['required', 'string', 'max:255'],
            'email' => 'required|string|email|max:255|unique:users|email_checker',
            'password' => ['required', 'string', 'min:8', 'confirmed'],
        ]);
    }

Using Rule Objects

    use TintNaingWin\EmailChecker\Rules\EmailExist;

    $request->validate([
        'email' => ['required', 'string', 'email', 'max:255', 'unique:users', new EmailExist],
    ]);

Usage With Facade

You can also check check email manually:, (*8)

```php // reture boolean EmailChecker::check('me@example.com');, (*9)


## Testing Run the tests with: ``` bash composer test

Credit

Changelog

Please see CHANGELOG for more information on what has changed recently., (*10)

Security

If you discover any security-related issues, please email amigo.k8@gmail.com instead of using the issue tracker., (*11)

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

18/06 2018

dev-master

9999999-dev

Laravel Package To Validate If An Email Address Exists Without Sending An Email

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Tint Naing Win

18/06 2018

dev-analysis-8bxnDM

dev-analysis-8bxnDM

Laravel Package To Validate If An Email Address Exists Without Sending An Email

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Tint Naing Win

18/04 2018

v1.0

1.0.0.0

Laravel Package To Validate If An Email Address Exists Without Sending An Email

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Tint Naing Win

22/06 2017

v0.5

0.5.0.0

Laravel Package To Validate If An Email Address Exists Without Sending An Email

  Sources   Download

MIT

The Requires

 

by Tint Naing Win

13/06 2017

v0.4

0.4.0.0

Laravel Package To Validate If An Email Address Exists Without Sending An Email

  Sources   Download

MIT

The Requires

 

by Tint Naing Win

23/04 2017

v0.3

0.3.0.0

Laravel Package To Validate If An Email Address Exists Without Sending An Email

  Sources   Download

MIT

The Requires

 

by Tint Naing Win

23/04 2017

v0.2

0.2.0.0

Laravel Package To Validate If An Email Address Exists Without Sending An Email

  Sources   Download

MIT

The Requires

 

by Tint Naing Win

25/03 2017

v0.1

0.1.0.0

Laravel Package To Validate If An Email Address Exists Without Sending An Email

  Sources   Download

MIT

The Requires

 

by Tint Naing Win