EmailValidator

PHP Email address validator

MIT License

Downloads
490.3M
Stars
11.3K
Committers
75

Bot releases are hidden (Show)

EmailValidator - PHPUnit & test depencis upgrade

Published by egulias almost 7 years ago

EmailValidator - Compatibility with RFC 2181

Published by egulias over 7 years ago

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.

EmailValidator - Compatibility with RFC 2181

Published by egulias over 7 years ago

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.

EmailValidator - Readme update & Bug fixing

Published by egulias about 8 years ago

  • #123 Readme
  • #124 Returned errors for multiple validations
  • #126 Fix NoRFCValidation to return InvalidEmail error
EmailValidator - MultipleValidationWithAnd has new options

Published by egulias over 8 years ago

Allow MultipleValidationWithAnd to stop with the first failure.

EmailValidator - DNSCheck bugs and poilshing

Published by egulias over 8 years ago

  • Fix #115 - fixed DNSCheckValidation bug
  • Fix #112 - typo
  • Fix #116 - fixed some more problems in DNSCheckValidation
  • Fix #117 - fixed type missing and removed unused code
  • Feature #113 - Improve lib export feature by providing less code, making it thinner.
EmailValidator - EmailValidator interface

Published by egulias over 8 years ago

To allow for substitution where needed

EmailValidator - New interface

Published by egulias over 8 years ago

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

  • #80
  • #102
  • #74
EmailValidator - Backslash in domain bug fix

Published by egulias over 8 years ago

  • Documentation editions
  • Backslash in domain bug fix (#74)
EmailValidator - Orphan brackets

Published by egulias almost 9 years ago

  • See #84
EmailValidator - Unclosed parenthesis counting

Published by egulias about 9 years ago

Improve parenthesis control for unclosed parenthesis by @whyte624

EmailValidator - Improved UTF8 and domain validations

Published by egulias over 9 years ago

  • Improve domain validations for invalid domain tokens e.g ", >, <
  • Added capturing group for all non ASCII chars to avoid flagging them as EmailLexer::S_EMPTY
  • Fix (only for ") #57
  • Fix #55
EmailValidator - Fix version of dependency

Published by egulias almost 10 years ago

  • Fixed dependency for doctrine/lexerto ~1.0, thanks @Ocramius for tagging.
  • Fixed bug on test@fo;o.com like emails.
  • Minor fixes on documentation.
EmailValidator - UTF8 Character improvements

Published by egulias almost 10 years ago

Control of ill formed UTF-8 chars and control characters for wrongly written emails with UTF8 chars
Thanks @masakielastic for reporting

EmailValidator - Fix regression from 1.2.4

Published by egulias almost 10 years ago

A regression was introduced in 1.2.4 for long local parts.
Thanks to @craue

EmailValidator - Strict and DNS check bug fix

Published by egulias almost 10 years ago

See #32
Error was caused by wrong negation and use of checkdnsr wasn't been taken into account when strict was set.
Now emails with warnings will fail when strict && DNS check or when strict with no DNS
Also, DNS check only raises warnings.

EmailValidator - Improved detection of invalid emails

Published by egulias almost 10 years ago

Valid Emails

  • Improved detection of 4 valid email addresses

Invalid Emails

  • Added 21 invalid emails in tests and added them to the validation, they are now detected as invalid.
EmailValidator - Quoted Part Improvements

Published by egulias about 10 years ago

Bug fixes reported by @brianfreytag on issue #19:

Invalid emails:

Valid emails:

  • "brian,freytag"@gmail.com
  • "brian freytag"@gmail.com
  • "brian@freytag"@gmail.com
  • brian\ [email protected]

Are now detected as such.

EmailValidator - Remove dependency with checkDNS

Published by egulias about 10 years ago

EmailValidator - Code Improved

Published by egulias over 10 years ago

  • Code has been improved to allow for later refactors
  • A bug was fixed regarding comments in the domain part. Check the test cases for details
  • The validator is now 20% slower (in CLI, with PHP 5.5) due to several classed being involved