PHPackages                             willdurand/email-reply-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. willdurand/email-reply-parser

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

willdurand/email-reply-parser
=============================

Port of the cool GitHub's EmailReplyParser library in PHP

2.10.0(4y ago)6506.4M—5.9%80[1 issues](https://github.com/willdurand/EmailReplyParser/issues)[2 PRs](https://github.com/willdurand/EmailReplyParser/pulls)11MITPHPPHP &gt;=7.4.0

Since May 13Pushed 3y ago27 watchersCompare

[ Source](https://github.com/willdurand/EmailReplyParser)[ Packagist](https://packagist.org/packages/willdurand/email-reply-parser)[ RSS](/packages/willdurand-email-reply-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (26)Used By (11)

EmailReplyParser
================

[](#emailreplyparser)

[![GitHub Actions](https://github.com/willdurand/EmailReplyParser/workflows/ci/badge.svg)](https://github.com/willdurand/EmailReplyParser/actions?query=workflow%3A%22ci%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/a20552c263f86e3770da7bbf61ecb89916101b5ddb9a5a986f493e10d1c7170f/68747470733a2f2f706f7365722e707567782e6f72672f77696c6c647572616e642f656d61696c2d7265706c792d7061727365722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/willdurand/email-reply-parser)[![Latest Stable Version](https://camo.githubusercontent.com/ceac63cb85ba8bfa30b40c0004c0ca20aca1fb210e95325543e88a553b8d7356/68747470733a2f2f706f7365722e707567782e6f72672f77696c6c647572616e642f656d61696c2d7265706c792d7061727365722f762f737461626c652e706e67)](https://packagist.org/packages/willdurand/email-reply-parser)

**EmailReplyParser** is a PHP library for parsing plain text email content, based on GitHub's [email\_reply\_parser](http://github.com/github/email_reply_parser)library written in Ruby.

Installation
------------

[](#installation)

The recommended way to install EmailReplyParser is through [Composer](http://getcomposer.org/):

```
composer require willdurand/email-reply-parser
```

Usage
-----

[](#usage)

Instantiate an `EmailParser` object and parse your email:

```
