mathiasd88/email-disponibility-validator

A validator for disposable and temporary email addresses.

dev-master 2018-07-17 03:07 UTC

This package is not auto-updated.

Last update: 2024-05-16 09:44:53 UTC


README

A validator for disposable and temporary email addresses.

Getting Started

Prerequisites

  • php > 7.0.0

Installing

composer require mathiasd88/email-disponibility-validator

Usage

$validator = new EmailDomainValidator('mathiasd88@gmail.com');
$validator->validate(); // returns true

$validator2 = new EmailDomainValidator('fakeemail@0815.ru');
$validator2->validate(); // returns false

Running the tests

You can use either

composer tests

or...

vendor/bin/phpunit --bootstrap vendor/autoload.php tests/ --colors

Contributing

You can contribute to the code or adding emails to the list.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

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