PHP library for parsing plain text email content to extract visible text and separate signatures and quotes.
EmailReplyParser is a PHP library designed to parse plain text email content and extract the visible message body while separating quoted replies, signatures, and other non-essential fragments. It solves the problem of isolating the meaningful content from email threads, which is crucial for applications that need to process or display email communications cleanly.
PHP developers building applications that handle email processing, such as customer support systems, communication platforms, or any software that needs to parse and display email content intelligently.
Developers choose EmailReplyParser because it provides a reliable, GitHub-inspired solution for email parsing with a simple API, handling the complexities of real-world email formatting while being easy to integrate into PHP projects via Composer.
PHP library for parsing plain text email content.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Based on GitHub's email_reply_parser library, ensuring battle-tested and reliable parsing for common email formats, as stated in the README.
Easy installation via Composer with a clean API, offering both object-oriented classes and static helpers for quick parsing, as demonstrated in the usage examples.
Breaks emails into classified fragments (visible, quoted, signature, hidden), providing fine-grained control over content extraction through the Fragment class methods.
Includes a static method EmailReplyParser::parseReply() to directly obtain visible text in one line, simplifying common use cases like support ticket systems.
Assumes English-centric patterns for quoted headers, making it unreliable for emails in other languages or with client-specific line breaks, as admitted in the known issues section.
Requires custom regex or additional logic to handle weird signatures and strange quoting, increasing maintenance burden for developers dealing with diverse email formats.