PHPackages                             djmattyg007/emailparser - 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. djmattyg007/emailparser

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

djmattyg007/emailparser
=======================

Fork of the Plancake Email Parser with additional features

5.0.0(9y ago)28.3k6[1 PRs](https://github.com/djmattyg007/official-library-php-email-parser/pulls)LGPLv3PHPPHP ^5.6.0|^7.0.0

Since Apr 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/djmattyg007/official-library-php-email-parser)[ Packagist](https://packagist.org/packages/djmattyg007/emailparser)[ Docs](http://www.plancake.com)[ RSS](/packages/djmattyg007-emailparser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (6)Used By (0)

```
*** PLANCAKE PHP EMAIL PARSER ***

This is a fork of the original Plancake email parser, with various pull
requests submitted to the original repository merged in, as well as other
additional features, some submitted directly to my fork.

In contrast to the original, this fork has a hard dependency on the mb_string
PHP extension.

The original readme is below.

N.B.: if you deal with non-English languages, we recommend you install the IMAP PHP extension:
the Plancake PHP Email Parser will detect it and used it automatically for better results.

This library allows you to easily parse an email given its content (headers + body).

Usage example:

$emailPath = "/var/mail/spool/dan/new/12323344323234234234";
$emailParser = new PlancakeEmailParser(file_get_contents($emailPath));

// You can use some predefined methods to retrieve headers...
$emailTo = $emailParser->getTo();
$emailSubject = $emailParser->getSubject();
$emailCc = $emailParser->getCc();
// ... or you can use the 'general purpose' method getHeader()
$emailDeliveredToHeader = $emailParser->getHeader('Delivered-To');

$emailBody = $emailParser->getPlainBody();

For more info:
https://github.com/plancake/official-library-php-email-parser

-----------------------------------------

We love to hear from you ♥. Please, send us any feedback.
Even if you don't speak English, don't worry, use your native language (we have great confidence in Google Translate :-))
http://www.plancake.com/contact

Please contact us if you need any commercial support with the installation of any component or if you would like any customization:
http://www.plancake.com/contact

Please consider contributing with bug fixes or improvements:
dan@plancake.com

Plancake homepage: http://www.plancake.com
Support: http://www.plancake.com/forums/forum/13/support-for-developers/
Subscribe to our blog: http://www.plancake.com/blog
Follow us on Twitter: http://twitter.com/plancakebakers
Follow us on Facebook: http://www.facebook.com/plancake
Donations ♥ : http://www.plancake.com/donate

"Plancake" and "Plancake Team" are trademarks of Daniele Occhipinti.
(by the way, what about using Plancake Team for team collaboration? team.plancake.com)

Brought to you by Danyuki Software Limited, a startup tech company based in London, UK.

Happy plancaking!

Daniele Occhipinti
Director and Founder of Plancake
email: dan@plancake.com
skype: dan_plan (I can speak English and Italian)
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 72.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~168 days

Total

5

Last Release

3367d ago

Major Versions

2.1.0 → 3.0.02016-03-10

3.0.1 → 4.0.02017-02-23

4.0.0 → 5.0.02017-02-24

PHP version history (2 changes)2.1.0PHP &gt;=5.3.0

5.0.0PHP ^5.6.0|^7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/29e8622a72b856256e1b0f9e5ba9480444c6391e6e80a48eeb52fc4118eacf06?d=identicon)[djmattyg007](/maintainers/djmattyg007)

---

Top Contributors

[![djmattyg007](https://avatars.githubusercontent.com/u/489338?v=4)](https://github.com/djmattyg007 "djmattyg007 (43 commits)")[![MartijnBraam](https://avatars.githubusercontent.com/u/6928199?v=4)](https://github.com/MartijnBraam "MartijnBraam (10 commits)")[![ibrahimlawal](https://avatars.githubusercontent.com/u/458428?v=4)](https://github.com/ibrahimlawal "ibrahimlawal (3 commits)")[![mhoffmann](https://avatars.githubusercontent.com/u/409634?v=4)](https://github.com/mhoffmann "mhoffmann (1 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (1 commits)")[![sergeypayu](https://avatars.githubusercontent.com/u/241026?v=4)](https://github.com/sergeypayu "sergeypayu (1 commits)")

---

Tags

emailparseremail

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/djmattyg007-emailparser/health.svg)

```
[![Health](https://phpackages.com/badges/djmattyg007-emailparser/health.svg)](https://phpackages.com/packages/djmattyg007-emailparser)
```

###  Alternatives

[egulias/email-validator

A library for validating emails against several RFCs

11.6k691.3M307](/packages/egulias-email-validator)[zbateson/mail-mime-parser

MIME email message parser

53949.2M79](/packages/zbateson-mail-mime-parser)[sendgrid/sendgrid

This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.

1.5k47.5M164](/packages/sendgrid-sendgrid)[pelago/emogrifier

Converts CSS styles into inline style attributes in your HTML code

94944.1M110](/packages/pelago-emogrifier)[soundasleep/html2text

A PHP script to convert HTML into a plain text format

48419.5M75](/packages/soundasleep-html2text)[vaibhavpandeyvpz/phemail

A pure PHP MIME parser for parsing raw email files (.eml) with full support for multipart messages, nested structures, and RFC 2046 compliance.

33121.7k1](/packages/vaibhavpandeyvpz-phemail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
