Download the PHP package mjk-limon/temporary-email-checker without Composer

On this page you can find all versions of the php package mjk-limon/temporary-email-checker. 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 temporary-email-checker

Temporary (Spam) Email Checker

A PHP service that validates email domains against whitelist and blacklist, with automatic disposable domain detection using our known database and UserCheck API.

Features

Cache System

The system uses indexed cache files for ultra-fast domain lookups:

How It Works

Benefits

Initial Setup

Before first use, build the cache from your master data files:

This command:

  1. Reads data/white.list and data/black.list
  2. Creates indexed cache files in .cache/ folder
  3. Removes duplicates and sorts domains
  4. Displays statistics

Sample output:

Verify Cache

Check cache integrity anytime:

Rebuild Cache

When you manually update data/white.list or data/black.list, rebuild the cache:

How New Domains Are Stored

When a new domain is validated via the API:

Installation

  1. Clone or download the files to your web directory:

  2. Set permission to .cache directory:

  3. Add your master domain lists to data/:

  4. Build the cache (IMPORTANT!):

  5. Set proper permissions:

  6. Update the API key in index.php:

Configuration

API Key

Get your UserCheck API key from usercheck.com and add it to index.php:

Cache Directory

Cache files are stored in .cache/ folder. Ensure it's writable:

Master Data Files

Keep your master lists in data/ folder:

API Usage

Check Email Domain

Request:

Workflow

The service follows this logic:

  1. Extract Domain - Gets domain from email address
  2. Check Whitelist Cache - Returns true if found in whitelist-*.list cache
  3. Check Blacklist Cache - Returns false if found in blacklist-*.list cache
  4. API Check - Calls UserCheck API to detect disposable domains:
    • If disposable → Appends to blacklist-*.list cache → Returns false
    • If legitimate → Appends to whitelist-*.list cache → Returns true

Important: Master files (data/white.list, data/black.list) are never modified. New domains are only added to cache files.

List File Format

Both white.list and black.list are plain text files with one domain per line:

Initial Whitelist

Blacklist Examples

Error Handling

The service throws exceptions for:

Handle exceptions in your integration:

UserCheck API

The service integrates with UserCheck API to verify disposable domains.

API Endpoint: https://api.usercheck.com/domain/{domain}

Headers: Authorization: Bearer {api_key}

Response:

License

MIT License - Feel free to use and modify


All versions of temporary-email-checker with dependencies

PHP Build Version
Package Version
No informations.
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 mjk-limon/temporary-email-checker contains the following files

Loading the files please wait ...