File: |
src/EmailValidator/Policy.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 John Conde |
Last change: |
refactor: split Rfc5322Validator into specialized components
- Break down monolithic Rfc5322Validator into focused validator classes:
- AtomValidator for unquoted local parts
- QuotedStringValidator for quoted string local parts
- DomainNameValidator for domain names
- DomainLiteralValidator for IPv4/IPv6 addresses
- Convert Rfc5322Validator into an orchestrator that delegates to specialized validators
- Improve maintainability by reducing class responsibilities
- Ensure strict type safety with EmailAddress objects
This refactoring follows the Single Responsibility Principle, making the
code easier to maintain and test. Each validator now handles one specific
aspect of RFC 5322 email validation.
chore: minor formatting fixes
|
Date: |
11 days ago |
Size: |
3,503 bytes |
|
|
|