egulias/email-validator
RFC-focused email validation library for PHP. Validates addresses against RFC 5321/5322/6530-6532 and 1035 with pluggable strategies (RFC, DNS, spoof checks). Designed for strict parsing and modern PHP (8.1+) projects via Composer.
The package is a standalone PHP library with no framework dependencies, making it highly compatible with Laravel's architecture. It integrates seamlessly via Composer and can extend Laravel's validation system through custom rules. The RFC-focused validation complements Laravel's built-in validators by providing stricter, standards-compliant checks.
High integration feasibility due to Composer installation and clear API documentation. Laravel's Validator::extend() allows wrapping the package's validations into custom rules with minimal code changes.
Moderate technical risk. Requires PHP 8.1+ and Intl extension for full features. DNSCheckValidation introduces network-dependent failures (e.g., DNS timeouts), which could cause validation delays or false negatives. The package's active maintenance mitigates long-term risks, but legacy PHP environments would require upgrades first.
Key questions: What specific RFC compliance levels are required for our use case? How should DNS check failures be handled (e.g., log vs. fail validation)? Are
How can I help you explore Laravel packages today?