Skip to content

New interface

Compare
Choose a tag to compare
@egulias egulias released this 16 May 17:24
· 208 commits to 4.x since this release

Features

New interface

Changed isValid method interface to
EmailValidator::isValid(String $email, EmailValidation $validation)
This allows for extensibility of the validator.

Out of the box implementations

  1. RFCValidation
  2. NoWarningsRFCValidation
  3. DNSCheckValidation
  4. SpoofCheckValidation
  5. MultipleValidationsWithAnd

Custom Warnings and Errors (Exceptions)

Since this version, all errors and Exceptions are custom to better express the error or warning

Bugs