PHPackages                             floriansemm/official-library-php-email-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. floriansemm/official-library-php-email-parser

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

floriansemm/official-library-php-email-parser
=============================================

Plancake Email Parser is a simple emailparser for php

1.0.0(12y ago)022.0k↓42.9%21GPLv3PHPPHP &gt;=5.3.0

Since Apr 28Pushed 10y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (1)

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

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

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

4404d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1059500?v=4)[Florian Semm](/maintainers/floriansemm)[@floriansemm](https://github.com/floriansemm)

---

Tags

parseremail

### Embed Badge

![Health badge](/badges/floriansemm-official-library-php-email-parser/health.svg)

```
[![Health](https://phpackages.com/badges/floriansemm-official-library-php-email-parser/health.svg)](https://phpackages.com/packages/floriansemm-official-library-php-email-parser)
```

###  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

54149.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

48519.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)
