Download the PHP package aman00323/emailchecker without Composer
On this page you can find all versions of the php package aman00323/emailchecker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aman00323/emailchecker
More information about aman00323/emailchecker
Files in aman00323/emailchecker
Package emailchecker
Short Description Laravel package for checking email address is exist or not in real world
License MIT
Homepage https://github.com/aman00323/email-checker
Rated 5.00 based on 1 reviews
Informations about the package emailchecker
Email Checker
Email Checker helps you reduce fake signups and disposable email usage by validating addresses with a practical multi-step flow.
Why Use It
- disposable-domain detection
- MX/DNS checks
- SMTP probe (when possible)
Use it in registration and lead-capture flows where cleaner email data matters.
Quick Start
Install:
Basic check:
Compatibility
| Package Version | PHP | Laravel |
|---|---|---|
| 3.x | >= 8.1 | 10.x, 11.x, 12.x |
Installation
Email Checker requires PHP >= 8.1 and supports modern Laravel versions.
To get the latest version, require the project using Composer:
Once installed, include Aman\EmailVerifier\EmailChecker to access validation methods.
Optional: publish package config to tune SMTP behavior globally:
This creates config/emailchecker.php with defaults for probe toggle, port, timeout, and sender email.
Configuration
Published config (config/emailchecker.php) example:
Use global config when:
- you want one default behavior across the whole Laravel app
- settings should come from environment variables per deployment
Use per-instance setters when:
- you need request-specific behavior
- you want to override defaults for one check flow only
Usage
Check Disposable Emails
If you want to check whether an email is disposable, use the method below.
Pass true as the second argument to enable deep checking against the full disposable-domain dataset shipped in this package.
This checks the address domain against the disposable-domain dataset included in this package.
Check DNS and MX Records
For better SMTP responses, set a sender email first:
Or set an environment variable:
You can also configure probe behavior globally via environment variables:
This method checks DNS and MX records, then attempts an SMTP handshake using fsockopen().
This returns an array like ['valid'|'invalid', 'details...'].
For better output, your server should support fsockopen().
Check Domain Status
This method validates domain existence through DNS record checks (MX, A, AAAA, CNAME).
This method returns true when at least one supported DNS record exists; otherwise false.
Check Email
This method runs disposable, MX/DNS+SMTP, and domain checks and returns a structured response.
All methods can be used independently, or together via checkEmail().
Example success response:
Limits and Expectations
No email verification library can guarantee 100% certainty for every mailbox.
- Some mail servers block SMTP probes
- Some domains are valid but intentionally restrictive
- Disposable-domain providers change frequently
Use this package as a high-signal filter, not a single source of truth.
Deprecations and Migration Notes
The package keeps old keys/properties for compatibility, but new integrations should use corrected names.
| Legacy | Use Instead | Status |
|---|---|---|
dispossable (response key) |
disposable |
Deprecated, still returned |
$checker->domian |
$checker->domain |
Deprecated, still synchronized |
Migration recommendation:
- read
disposablein new code - keep fallback support for
dispossablein existing clients until your next major release
Contribution
All contributors are welcome. Please keep code style consistent and ensure tests pass before opening a pull request.
Keeping Disposable Domains Updated
Refresh the domain dataset locally:
This command fetches trusted source lists, normalizes and deduplicates domains, rewrites shard files in resources/domains, and updates resources/domains/metadata.json.
The repository also includes a daily scheduled GitHub Actions workflow to automate refreshes and open pull requests when updates are available.
Sponsorship and Commercial Support
If this package saves your team time or prevents signup abuse in production, please consider supporting maintenance.
- Sponsor ongoing open-source maintenance
- Fund roadmap items and faster issue triage
- Request paid integration support for your project
For sponsorship or paid support, contact: [email protected]
Credits
Thanks to all contributors and users who helped this package reach broad production usage.