PHP Classes

File: src/EmailValidator/EmailAddress.php

Recommend this page to a friend!
  Classes of John Conde   PHP Email Validation Library Pro   src/EmailValidator/EmailAddress.php  
File: src/EmailValidator/EmailAddress.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Email Validation Library Pro
Validate email addresses using multiple rules
Author: By
Last change: Chore: minor code clean up
feat(validation): Implement strict RFC 5322 email validation

- Fix domain literal validation for IPv4 and IPv6 addresses:
* Add proper handling of IPv6 compressed notation
* Support IPv4 addresses with leading zeros
* Validate IPv6 segment formats and values
* Fix empty segment handling in IPv6 addresses

- Improve EmailAddress class parsing:
* Simplify domain literal parsing logic
* Fix handling of quoted strings with @ symbols
* Preserve brackets in domain literals

- Update test suite with comprehensive RFC 5322 cases:
* Add tests for IPv4/IPv6 edge cases
* Add tests for quoted string escaping
* Fix test data to match RFC specifications
Date: 11 days ago
Size: 5,425 bytes

 

You need to be a registered user and login to get this file.

Login Immediately with your account on: