black/email
PHP 5.4+ value object for safer email handling. Validates email format (throws on invalid), exposes recipient/domain/tld getters, array parsing, and equality checks. Note: relies on FILTER_VALIDATE_EMAIL; limited for non-ASCII and provider rules.
User, Contact) where emails are critical.ValidatesWhen trait) over strict value objects.User <user@example.com>).For Executives:
"This package turns email validation from a fragile, ad-hoc process into a robust, self-documenting component. By catching invalid emails at the code level (e.g., foo@bar.com), we reduce support costs from user errors and improve data quality—critical for trust in our platform. It’s a 10-minute integration with zero runtime overhead, paying dividends in scalability and reliability."
For Engineers: *"Replace your custom email regex or loose validation with a type-safe value object that:
$request->email for new Email\Email($request->email) in your signup logic—no more null checks for strpos('@', $email).*
Tradeoff: Minimal upfront cost for long-term safety."*How can I help you explore Laravel packages today?