2017 © Pedro Peláez
 

library laravel-disposable-email

Disposable email validator

image

propaganistas/laravel-disposable-email

Disposable email validator

  • Sunday, June 3, 2018
  • by Propaganistas
  • Repository
  • 6 Watchers
  • 45 Stars
  • 2,551 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 4806 % Grown

The README.md

Laravel Disposable Email

Tests Latest Stable Version Total Downloads License, (*1)

Adds a validator to Laravel for checking whether a given email address isn't originating from disposable email services such as Mailinator, Guerillamail, ... Uses the disposable domains blacklist from disposable/disposable by default., (*2)

Installation

  1. Run the Composer require command to install the package. The service provider is discovered automatically., (*3)

    composer require propaganistas/laravel-disposable-email
    
  2. Publish the configuration file and adapt the configuration as desired:, (*4)

    php artisan vendor:publish --tag=laravel-disposable-email
    
  3. (optional) In your languages directory, add for each language an extra language line for the validator:, (*5)

    'indisposable' => 'Disposable email addresses are not allowed.',
    
  4. (optional) This package receives a weekly patch release containing updates to the built-in disposable domains list. If you are not able to bump your installed version accordingly, or just want to stay ahead of things, make sure to update the domains list yourself at any interval you like by running or scheduling the disposable:update command:, (*6)

    // routes/console.php
    
    use Illuminate\Support\Facades\Schedule;
    
    Schedule::command('disposable:update')->daily();
    

Usage

Use the indisposable validator to ensure a given field doesn't hold a disposable email address. You'll probably want to add it after the email validator to make sure a valid email is passed through:, (*7)

'field' => 'email|indisposable',

Custom fetches

By default the package retrieves a new list by using file_get_contents(). If your application has different needs (e.g. when behind a proxy) please review the disposable-email.fetcher configuration value., (*8)

The Versions

03/06 2018

dev-master

9999999-dev

Disposable email validator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Propaganistas

laravel mail email validator temporary disposable throwaway

03/06 2018

2.0.1

2.0.1.0

Disposable email validator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Propaganistas

laravel mail email validator temporary disposable throwaway

13/05 2018

2.0.0

2.0.0.0

Disposable email validator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Propaganistas

laravel mail email validator temporary disposable throwaway

13/05 2018

dev-dev-refactor

dev-dev-refactor

Disposable email validator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Propaganistas

laravel mail email validator temporary disposable throwaway

19/03 2018

1.0.1

1.0.1.0

Disposable email validator

  Sources   Download

MIT

The Requires

 

by Avatar Propaganistas

laravel mail email validator temporary disposable throwaway

17/03 2018

1.0.0

1.0.0.0

Disposable email validator

  Sources   Download

MIT

The Requires

 

by Avatar Propaganistas

laravel mail email validator temporary disposable throwaway