Download the PHP package willvincent/laravel-email-verifier without Composer

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

Laravel Email Verifier

GitHub Actions codecov

A comprehensive email verification package for Laravel 11/12 that validates email addresses through multiple layers of checks including format validation, domain sanity, MX records, disposable domain detection, and optional integration with external email verification providers.

Features

Requirements

Installation

Publish Configuration

Publish Translations (Optional)

Configuration

The package comes with sensible defaults. Key configuration options in config/email-verifier.php:

Usage

Basic Usage

As Validation Rule (Object Style)

As Validation Rule (String Style)

Understanding Results

Scoring System

External Providers

Setup Example (Kickbox)

  1. Sign up at Kickbox
  2. Add to .env:

  3. The package will automatically use Kickbox for additional verification

Supported Providers

All providers follow the same pattern:

Creating a Custom Provider

You can create your own external verification driver by implementing the ExternalEmailVerifier interface:

Register your custom driver in a service provider:

Configure in config/email-verifier.php:

Then set in .env:

Best Practices for Custom Drivers:

Provider Behavior

Disposable Domain Detection

Update Disposable Domains List

Options:

Add Custom Disposable Domains

In config/email-verifier.php:

Advanced Usage

Dependency Injection

Custom Validation Messages

In resources/lang/en/validation.php:

Or publish and edit the package translations:

Testing

Architecture

Validation Flow

  1. Format Check: RFC 5322 validation
  2. Domain Sanity: Check for valid TLD, no leading/trailing dots
  3. Normalization: Lowercase domain, optionally lowercase local part
  4. MX Records: Verify domain has mail servers
  5. Disposable Detection: Check against known disposable domains
  6. Role-Based Detection: Flag generic addresses (admin@, info@)
  7. Plus Addressing: Detect and flag plus addressing
  8. Score Check: Reject if score below threshold
  9. External Verification (optional): Verify with third-party API
  10. Final Score Check: Apply threshold after external verification

Chain of Responsibility Pattern

Each validation rule is independent and can modify the result:

Rules can:

Performance

Latency Characteristics

Performance Recommendations

1. Use Queue-Based Verification for User Registration

For the best user experience during registration, validate emails asynchronously:

Job implementation:

2. Disable External Verification in Synchronous Validation

For form requests that need immediate responses, disable external verification:

3. Use External Verification Selectively

Only enable external verification when email quality is critical:

4. Cache Verification Results

For repeated verification of the same email:

5. Batch Verification

For bulk operations, process in chunks:

Performance Impact Summary

Approach Latency External Check Best For
Sync with external 150-600ms ✅ Yes Background jobs, API endpoints with async processing
Sync without external 10-50ms ❌ No Form validation, immediate feedback
Queue-based < 1ms (response) ✅ Yes (async) User registration, newsletter signups
Cached results < 1ms ➖ First call only Repeated checks, bulk operations

Recommendation: For user-facing forms, use allowExternal: false during validation and run full verification with external providers in a background queue. This provides instant feedback while still maintaining high email quality standards.

Security

License

MIT License. See LICENSE.md for details.

Credits

Created by Will Vincent

Support

Contributing

Contributions are welcome! Please ensure:


All versions of laravel-email-verifier with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.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 willvincent/laravel-email-verifier contains the following files

Loading the files please wait ...