Download the PHP package erag/laravel-disposable-email without Composer

On this page you can find all versions of the php package erag/laravel-disposable-email. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-disposable-email

Laravel Disposable Email Detection

Screenshot 2024-10-04 at 10 34 23โ€ฏPM
[![Packagist License](https://img.shields.io/badge/Licence-MIT-blue)](https://github.com/eramitgupta/laravel-disposable-email/blob/main/LICENSE) [![Latest Stable Version](https://img.shields.io/packagist/v/erag/laravel-disposable-email?label=Stable)](https://packagist.org/packages/erag/laravel-disposable-email) [![Total Downloads](https://img.shields.io/packagist/dt/erag/laravel-disposable-email.svg?label=Downloads)](https://packagist.org/packages/erag/laravel-disposable-email)

A Laravel package to detect and block disposable (temporary) email addresses during validation or runtime logic.

Already contains 106,580+ disposable email domains! ๐Ÿ”ฅ


โœ… Features

๐Ÿš€ Installation

Register the Service Provider

For Laravel (Optional) v11.x, v12.x

Ensure the service provider is registered in your /bootstrap/providers.php file:

For Laravelv v10.x

Ensure the service provider is registered in your config/app.php file:


๐Ÿ›  Configuration

Publish the config file:

This will create config/disposable-email.php.


โš™ Usage

1. Form Request Validation

โœ… Custom Rule:

โœ… String-based Rule:


2. Direct Runtime Check

Or via facade:


3. Blade Directive


๐Ÿ”„ Sync From Remote (Optional)

Update the list manually

๐Ÿ”— Config Options (config/disposable-email.php)

โœ… Note: The .txt files from remote_url must follow this format:
Each line should contain only a domain name, like:

If the file contains anything other than plain domains (like comments or extra data), it may cause parsing issues.

๐Ÿงฉ Add Your Own Disposable Domains

โœ… Want to block additional disposable domains?
You can easily extend the list manually โ€” no coding, no command required!

Step Action
๐Ÿ”น 1 Go to the following path:
storage/app/blacklist_file/
๐Ÿ”น 2 Create or edit this file:
disposable_domains.txt
๐Ÿ”น 3 Add your custom domains like:
abakiss.com
fakemail.org
trashbox.io
(one per line)

๐Ÿ“Œ Important Notes:

  • Each line must contain only the domain name โ€“ no extra symbols, no comments.
  • The package will automatically detect and use the domains from this file.
  • You do not need to run any Artisan command. ๐Ÿง™โ€โ™‚๏ธ

โš™๏ธ Ensure File Path Matches Configuration

Your file path must match the one defined in config/disposable-email.php:

If the path or filename is different, the package will not load your custom list.


๐Ÿง  Caching Support (Optional)

This package supports optional caching to improve performance, especially when dealing with large domain lists.

๐Ÿ”ง How It Works

๐Ÿ›  Enable Caching

To enable caching, update the config file config/disposable-email.php:

๐Ÿงน Clear Cached List

If you manually update the domain list and want to clear the cache, you can use:


All versions of laravel-disposable-email with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.0
laravel/pint Version ^1.13
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/validation Version ^10.0|^11.0|^12.0
illuminate/translation Version ^10.0|^11.0|^12.0
illuminate/filesystem Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package erag/laravel-disposable-email contains the following files

Loading the files please wait ....