opcodesio/mail-parser
Simple, fast PHP 8+ email/MIME parser with a clean API—no mailparse extension required. Parse .eml strings/files, read headers (From/To/Subject/Date/size), and extract HTML/text bodies, parts, and attachments.
Adopt when:
.eml files with minimal setup.mailparse), ensuring cross-server compatibility.Look elsewhere if:
For Executives: "This package lets us ship email-driven features faster—like automated support responses or compliance archiving—without building custom infrastructure. It’s free (MIT license), reduces development risk, and ensures customer emails are parsed accurately, improving reliability and time-to-market for revenue-generating workflows. For example, we could deploy a ticketing system in weeks instead of months by leveraging this battle-tested foundation."
For Engineering: *"It integrates seamlessly with Laravel, providing a clean API to extract headers, bodies, and attachments without reinventing MIME parsing. Saves 3+ weeks of dev/testing, eliminates common edge-case bugs, and aligns with our stack. Perfect for:
.eml files from Mailgun/MailTrap webhooks.How can I help you explore Laravel packages today?