Description
E-Mail Address Validator for PHP
---
Example 1:
$emailCheck = EmailCheck::isValid("[email protected]"); // true
---
Example 2: (check for example-domain)
$emailCheck = EmailCheck::isValid("[email protected]", true); // false
---
Example 3: (check for typo in domain)
$emailCheck = EmailCheck::isValid("[email protected]", false, true); // false
---
Example 4: (check for temporary-domain)
$emailCheck = EmailCheck::isValid("[email protected]", false, false, true); // false
---
E-Mail Address Validator for PHP alternatives and similar libraries
Based on the "Email" category.
Alternatively, view E-Mail Address Validator for PHP alternatives based on common mentions on social networks and blogs.
-
CssToInlineStyles
CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very usefull when you're sending emails. -
phpList
This module is the core of phpList 4. Join discussion at the community forum: https://discuss.phplist.org/ -
Bounce Mail Handler
Bounce Mail Handler for PHP | This is a "reboot" of PHPMailer-BMH from WorxWare.
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of E-Mail Address Validator for PHP or a related project?
README
:envelope: E-Mail Address Validator for PHP
Warning
The best way to validate an e-mail address is still to send a duplicate opt-in-mail, when the user clicks on the link, it was a valid e-mail address!
Installation
The recommended installation way is through Composer.
$ composer require voku/email-check
Usage:
Example 1:
$emailCheck = EmailCheck::isValid("[email protected]");
// true
Example 2: (check for example-domain)
$emailCheck = EmailCheck::isValid("[email protected]", true);
// false
Example 3: (check for typo in domain)
$emailCheck = EmailCheck::isValid("[email protected]", false, true);
// false
Example 4: (check for temporary-domain)
$emailCheck = EmailCheck::isValid("[email protected]", false, false, true);
// false
Unit Test:
1) Composer is a prerequisite for running the tests.
composer install
2) The tests can be executed by running this command from the root directory:
./vendor/bin/phpunit
Support
For support and donations please visit Github | Issues | PayPal | Patreon.
For status updates and release announcements please visit Releases | Twitter | Patreon.
For professional support please contact me.
Thanks
- Thanks to GitHub (Microsoft) for hosting the code and a good infrastructure including Issues-Managment, etc.
- Thanks to IntelliJ as they make the best IDEs for PHP and they gave me an open source license for PhpStorm!
- Thanks to Travis CI for being the most awesome, easiest continous integration tool out there!
- Thanks to StyleCI for the simple but powerfull code style check.
- Thanks to PHPStan && Psalm for relly great Static analysis tools and for discover bugs in the code!
*Note that all licence references and agreements mentioned in the E-Mail Address Validator for PHP README section above
are relevant to that project's source code only.