A library for validating emails against several RFC. This library aims to support RFCs 5321, 5322, 6530, 6531, 6532, and 1035. Composer is required for installation. Spoofchecking and DNSCheckValidation validation requires that your PHP system has the PHP Internationalization Libraries (also known as PHP Intl). PHP version upgrades will happen to accomodate to the pace of major frameworks. Minor versions bumps will go via minor versions of this library (i.e: PHP7.3 -> v3.x+1). Major versions will go with major versions of the library. EmailValidatorrequires you to decide which (or combination of them) validation/s strategy/ies you'd like to follow for each validation. Note that warnings are deviations from the RFC that in a broader interpretation are acceptded. It's easy to extend! You just need to implement EmailValidation and you can use your own validation.

Features

  • RFCValidation, standard RFC-like email validation
  • NoRFCWarningsValidation, RFC-like validation that will fail when warnings are found
  • DNSCheckValidation, will check if there are DNS records that signal that the server accepts emails. This does not entails that the email exists
  • MultipleValidationWithAnd, a validation that operates over other validations performing a logical and (&&) over the result of each validation
  • MessageIDValidation, which follows RFC2822 for message-id to validate that field, that has some differences in the domain part
  • Your own validation, as you can extend the library behaviour by implementing your own validations

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow EmailValidator

EmailValidator Web Site

Other Useful Business Software
Go From Idea to Deployed AI App Fast Icon
Go From Idea to Deployed AI App Fast

One platform to build, fine-tune, and deploy. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of EmailValidator!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Email Spam Filter Software, PHP Email Software

Registered

2021-06-08