Releases: egulias/EmailValidator
PHPUnit & test depencis upgrade
2.1.3 Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase …
Compatibility with RFC 2181
Compatibility with RFC 2181
According to RFC2181, every DNS query needs to have a . at the end of
the name record you are requesting.
This will show that that name record is the root of the domain you are
asking
In some cases, when the . is missing, the hostname of the server the
code is running on will be appended to the name record when
checkdnsrr() is being executed and this will in turn return a false
positive when there is a wildcard DNS record for the root domain of the
hostname of the server.
Compatibility with RFC 2181
Compatibility with RFC 2181
According to RFC2181, every DNS query needs to have a . at the end of
the name record you are requesting.
This will show that that name record is the root of the domain you are
asking
In some cases, when the . is missing, the hostname of the server the
code is running on will be appended to the name record when
checkdnsrr() is being executed and this will in turn return a false
positive when there is a wildcard DNS record for the root domain of the
hostname of the server.
Readme update & Bug fixing
MultipleValidationWithAnd has new options
Allow MultipleValidationWithAnd to stop with the first failure.
DNSCheck bugs and poilshing
EmailValidator interface
To allow for substitution where needed
New interface
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
- RFCValidation
- NoWarningsRFCValidation
- DNSCheckValidation
- SpoofCheckValidation
- MultipleValidationsWithAnd
Custom Warnings and Errors (Exceptions)
Since this version, all errors and Exceptions are custom to better express the error or warning
Bugs
Backslash in domain bug fix
- Documentation editions
- Backslash in domain bug fix (#74)
Orphan brackets
- See #84