propaganistas / laravel-disposable-email
Disposable email validator
Fund package maintenance!
Propaganistas
Installs: 1 903 207
Dependents: 8
Suggesters: 1
Security: 0
Stars: 544
Watchers: 14
Forks: 62
Open Issues: 0
Requires
- php: ^8.1
- ext-json: *
- illuminate/cache: ^10.0|^11.0|^12.0
- illuminate/config: ^10.0|^11.0|^12.0
- illuminate/console: ^10.0|^11.0|^12.0
- illuminate/contracts: ^10.0|^11.0|^12.0
- illuminate/support: ^10.0|^11.0|^12.0
- illuminate/validation: ^10.0|^11.0|^12.0
Requires (Dev)
- laravel/pint: ^1.14
- mockery/mockery: ^1.4.2
- orchestra/testbench: *
- phpunit/phpunit: ^10.5|^11.5.3
- dev-master
- 2.4.17
- 2.4.16
- 2.4.15
- 2.4.14
- 2.4.13
- 2.4.12
- 2.4.11
- 2.4.10
- 2.4.9
- 2.4.8
- 2.4.7
- 2.4.6
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.1
- 2.3.0
- 2.2.18
- 2.2.17
- 2.2.16
- 2.2.15
- 2.2.14
- 2.2.13
- 2.2.12
- 2.2.11
- 2.2.10
- 2.2.9
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.26
- 2.1.25
- 2.1.24
- 2.1.23
- 2.1.22
- 2.1.21
- 2.1.20
- 2.1.19
- 2.1.18
- 2.1.17
- 2.1.16
- 2.1.15
- 2.1.14
- 2.1.13
- 2.1.12
- 2.1.11
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2025-08-13 17:42:20 UTC
README
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.
Installation
-
Run the Composer require command to install the package. The service provider is discovered automatically.
composer require propaganistas/laravel-disposable-email
-
Publish the configuration file and adapt the configuration as desired:
php artisan vendor:publish --tag=laravel-disposable-email
-
(optional) In your languages directory, add for each language an extra language line for the validator:
'indisposable' => 'Disposable email addresses are not allowed.',
-
(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:// 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:
'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.