Download the PHP package epifrin/disposable-email-checker without Composer
On this page you can find all versions of the php package epifrin/disposable-email-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download epifrin/disposable-email-checker
More information about epifrin/disposable-email-checker
Files in epifrin/disposable-email-checker
Package disposable-email-checker
Short Description The library allows checking if the email address is disposable
License MIT
Informations about the package disposable-email-checker
Disposable Email Checker
The library allows checking if the email address is disposable.
How it works
The library utilizes a third-party Debounce Disposable Email API, by sending requests and receiving responses. While the API is free to use, there are restrictions on the number of requests allowed. To minimize the number of requests, the library maintains its list of well-known email domains and implements a caching mechanism for previous responses.
Requirements
PHP ^8.1
guzzlehttp/guzzle ^7.0
Installation
Run the Composer require command to install the package:
composer require epifrin/disposable-email-checker
Usage
Basic use of DisposableEmailChecker
Please note. In case of reaching the Debounce API limitation will be thrown RateLimitException.
To reduce the number of requests to the Debounce API, it is recommended to pass a PSR-16 cache implementation as the first parameter when sending a significant amount of requests.
If you want to use your custom disposable email checker you can implement CheckerInterface and pass it as a second parameter.
Trust domains
Trust domains help to reduce the number of requests to the Debounce API. Emails from trust domains will not be checked by the Debounce API.
How to add trust domains.
Warning
Do not recommend using this library in the long-running application without your PSR-16 cache implementation.
All versions of disposable-email-checker with dependencies
psr/simple-cache Version ^3.0
psr/http-client Version ^1.0
guzzlehttp/psr7 Version ^2.0
guzzlehttp/guzzle Version ^7.0
ext-mbstring Version *