Download the PHP package kalimeromk/email-check without Composer

On this page you can find all versions of the php package kalimeromk/email-check. 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 email-check

PHP Email Check ๐Ÿ“ง

Latest Stable Version License

A lightweight PHP library for advanced email address validation. It performs multi-layered checks, including syntax, domain validity (DNS), disposable service detection, and more.

๐Ÿ“‹ Table of Contents

โœจ Key Features

โš ๏ธ Important Notice & Limitations

Please Note: This package performs a detailed technical analysis of an email address. However, it cannot 100% guarantee that a specific mailbox actually exists or is active. The only definitive way to verify this is by sending an email with a confirmation link.

๐Ÿ“ฆ Installation

Install the package easily via Composer.

โš™๏ธ System Requirements

Minimum Requirements

Recommended for Mass Validation

๐Ÿš€ Quick Start

๐Ÿ“– Basic Usage

Understanding the Result

The validate() method returns an associative array with the following keys:

Key Type Description
email string The submitted email address.
is_valid bool true if the email passes all key validations (format and domain).
domain_valid bool true if the domain has valid MX or A DNS records.
is_disposable bool true if the email is from a known disposable service.
pattern_valid bool true if email passes pattern filtering (fast rejection).
pattern_status string Pattern validation status: passed, rejected, or warning.
matched_pattern string|null Regex pattern that matched (if rejected), null if passed.
smtp_valid bool|null true if SMTP validation confirms mailbox exists, false if failed, null if disabled.
smtp_response string|null SMTP server response (if SMTP validation enabled), null if disabled.
smtp_status_code string|null Detailed SMTP status code (if SMTP validation enabled), null if disabled.
timestamp string When the validation was performed.

Example Output

๐Ÿ”ง Advanced Features

Pattern Filtering

Pattern filtering provides ultra-fast rejection of obviously invalid emails before expensive DNS/SMTP checks:

Pattern Status Values:

Common Invalid Patterns Detected:

Disposable Email Detection

The library includes an automatic update system for disposable email domains:

Manual Update

Automatic Update (Cron Job)

Monitoring Disposable Domains

DNS Cache Configuration

The CachedDnsValidator provides advanced caching capabilities:

Cache Drivers

File Cache (Default):

Redis Cache:

Cache Telemetry Monitoring

Mass Email Validation

For processing millions of emails efficiently, use the mass validation system:

Basic Mass Validation

Performance Configuration

Monitoring Progress

Performance Statistics

Based on testing with real email data on high-performance servers:

Standard Mode (40 cores, 1GB per process):

Aggressive Mode (80 threads, 2GB per process):

Output Files

The mass validator generates:

Example Output

Domain Suggestions

If the basic validation indicates that the domain is invalid, you can use a helper function to offer the user a correction suggestion:

โš™๏ธ Configuration

Environment Variables (.env)

Copy the env.example file to .env and configure your settings:

DNS Cache Configuration

Redis Configuration (used when EMAIL_DNS_CACHE_DRIVER=redis)

SMTP Validation Settings

Pattern Filtering Configuration

Programmatic Configuration

The EmailValidator accepts configuration options:

๐Ÿงช Testing

The package includes comprehensive test coverage with PHPUnit:

Test Coverage:

๐Ÿ“š API Reference

EmailValidator Class

Constructor

Methods

DisposableEmailDetector Class

Methods

CachedDnsValidator Class

Methods

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with โค๏ธ by KalimeroMK


All versions of email-check with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
psr/simple-cache Version ^3.0
symfony/cache Version ^6.0|^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 kalimeromk/email-check contains the following files

Loading the files please wait ...