Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. PHP
  3. Email Reply Parser

Email Reply Parser

MITPHP2.10.0

PHP library for parsing plain text email content to extract visible text and separate signatures and quotes.

Visit WebsiteGitHubGitHub
650 stars81 forks0 contributors

What is Email Reply Parser?

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.

Target Audience

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.

Value Proposition

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.

Overview

PHP library for parsing plain text email content.

Use Cases

Best For

  • Extracting visible text from email threads in support ticket systems
  • Parsing email replies in notification or messaging applications
  • Cleaning up quoted content in email-based comment systems
  • Separating signatures from email bodies in communication tools
  • Processing plain text emails in PHP-based CRM platforms
  • Handling email content in applications that aggregate or display email conversations

Not Ideal For

  • Projects processing emails in non-English languages, due to reliance on English patterns like 'On ... wrote:' for quoted headers.
  • Applications that need to parse HTML emails or handle MIME attachments, as it only supports plain text content.
  • Systems where email clients use highly non-standard quoting or signature formats not covered by the library's detection logic.

Pros & Cons

Pros

GitHub-Proven Logic

Based on GitHub's email_reply_parser library, ensuring battle-tested and reliable parsing for common email formats, as stated in the README.

Simple PHP Integration

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.

Structured Fragment Analysis

Breaks emails into classified fragments (visible, quoted, signature, hidden), providing fine-grained control over content extraction through the Fragment class methods.

Quick Visible Extraction

Includes a static method EmailReplyParser::parseReply() to directly obtain visible text in one line, simplifying common use cases like support ticket systems.

Cons

Language and Format Limitations

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.

Manual Edge Case Handling

Requires custom regex or additional logic to handle weird signatures and strange quoting, increasing maintenance burden for developers dealing with diverse email formats.

Frequently Asked Questions

Quick Stats

Stars650
Forks81
Contributors0
Open Issues9
Last commit3 years ago
CreatedSince 2011

Tags

#content-extraction#php-library#plain-text#text-processing#email-processing#php#email-parsing#email#composer-package#parser

Built With

C
Composer
P
PHP
P
PHPUnit

Links & Resources

Website

Included in

PHP32.5k
Auto-fetched 8 hours ago

Related Projects

PHPMailerPHPMailer

The classic email sending library for PHP

Stars22,208
Forks9,826
Last commit5 days ago
MauticMautic

Mautic: Open Source Marketing Automation Software.

Stars9,925
Forks3,347
Last commit22 hours ago
CssToInlineStylesCssToInlineStyles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very usefull when you're sending emails.

Stars5,831
Forks191
Last commit5 months ago
Symfony MailerSymfony Mailer

Helps sending emails

Stars1,598
Forks49
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub