leo108 / email-fake-filter
Email Fake Filter is a PHP library that allows you to check if an email address is a disposable/one-time email address.
Requires
- php: ^8.0
- thecodingmachine/safe: ^2.5
Requires (Dev)
- laravel/pint: ^1.10
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^10.1
- spatie/phpunit-snapshot-assertions: ^5.0
- thecodingmachine/phpstan-safe-rule: ^1.2
- thecodingmachine/phpstan-strict-rules: ^1.0
- dev-main
- v1.82.0
- v1.81.0
- v1.80.0
- v1.79.0
- v1.78.0
- v1.77.0
- v1.76.0
- v1.75.0
- v1.74.0
- v1.73.0
- v1.72.0
- v1.71.0
- v1.70.0
- v1.69.0
- v1.68.0
- v1.67.0
- v1.66.0
- v1.65.0
- v1.64.0
- v1.63.0
- v1.62.0
- v1.61.0
- v1.60.0
- v1.59.0
- v1.58.0
- v1.57.0
- v1.56.0
- v1.55.0
- v1.54.0
- v1.53.0
- v1.52.0
- v1.51.0
- v1.50.0
- v1.49.0
- v1.48.0
- v1.47.0
- v1.46.0
- v1.45.0
- v1.44.0
- v1.43.0
- v1.42.0
- v1.41.0
- v1.40.0
- v1.39.0
- v1.38.0
- v1.37.0
- v1.36.0
- v1.35.0
- v1.34.0
- v1.33.0
- v1.32.0
- v1.31.0
- v1.30.0
- v1.29.0
- v1.28.0
- v1.27.0
- v1.26.0
- v1.25.0
- v1.24.0
- v1.23.0
- v1.22.0
- v1.21.0
- v1.20.0
- v1.19.0
- v1.18.0
- v1.17.0
- v1.16.0
- v1.15.0
- v1.14.0
- v1.13.0
- v1.12.0
- v1.11.0
- v1.10.0
- v1.9.0
- v1.8.0
- v1.7.0
- v1.6.0
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.0
This package is auto-updated.
Last update: 2024-11-17 12:01:39 UTC
README
EmailFakeFilter is a PHP library that allows you to check if an email address is a disposable/one-time email address. This library is useful for preventing spam and fraudulent activity on your website or application.
Requirements
- PHP 8.0 or later
- Composer
Installation
You can install EmailFakeFilter using Composer. Just run the following command:
composer require leo108/email-fake-filter
This project gets its fake email addresses from 7c/fakefilter. The database is updated weekly, it's recommended to always use the latest version of this library:
composer update leo108/email-fake-filter
Usage
You can call the static methods of the EmailFakeFilter
class:
use EmailFakeFilter\EmailFakeFilter; if (EmailFakeFilter::isFakeDomain('mailinator.com')) { // This is a disposable/one-time domain } else { // This is not a disposable/one-time domain } // Check if an email address is a disposable/one-time email address if (EmailFakeFilter::isFakeEmail('example@mailinator.com')) { // This is a disposable/one-time email address } else { // This is not a disposable/one-time email address } // Get information about a domain $info = EmailFakeFilter::getDomainInfo('mailinator.com'); if ($info !== null) { // This is a disposable/one-time domain, and $info contains additional information about it } else { // This is not a disposable/one-time domain }
License
EmailFakeFilter is open source software licensed under the MIT License. See the LICENSE file for more information.