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. Run the following artisan command to fetch an up-to-date list of disposable domains:, (*5)

    php artisan disposable:update
    
  4. (optional) In your languages directory, add for each language an extra language line for the validator:, (*6)

    'indisposable' => 'Disposable email addresses are not allowed.',
    
  5. (optional) It's highly advised to update the disposable domains list regularly. You can either run the command yourself now and then or, if you make use of Laravel's scheduler, you can register the disposable:update command:, (*7)

    In routes/console.php:, (*8)

    use Illuminate\Support\Facades\Schedule;
    
    Schedule::command('disposable:update')->weekly();
    

    Or if you use Laravel 10 or below, head over to the Console kernel:, (*9)

    protected function schedule(Schedule $schedule)
    {
        $schedule->command('disposable:update')->weekly();
    }
    

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:, (*10)

'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., (*11)

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