PHPackages                             horde/mime - 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. horde/mime

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

horde/mime
==========

MIME library

v3.0.0(1w ago)38.4k↑20.2%1420LGPL-2.1-onlyPHPPHP ^7.4 || ^8CI failing

Since Nov 22Pushed 4d ago5 watchersCompare

[ Source](https://github.com/horde/Mime)[ Packagist](https://packagist.org/packages/horde/mime)[ Docs](https://www.horde.org/libraries/Horde_Mime)[ RSS](/packages/horde-mime/feed)WikiDiscussions FRAMEWORK\_6\_0 Synced 3d ago

READMEChangelog (7)Dependencies (54)Versions (64)Used By (20)

Horde\\Mime
===========

[](#hordemime)

MIME message handling library for PHP 8.2+.

Provides immutable value objects for building, parsing and rendering RFC 2822/2045 MIME messages.

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

[](#installation)

```
composer require horde/mime
```

Quick Start
-----------

[](#quick-start)

```
use Horde\Mime\MessageBuilder;
use Horde\Mime\MessageRenderer;
use Horde\Mime\MimeParser;
use Horde\Mime\PartBuilder;

// Compose a message
$builder = new MessageBuilder();
$builder->setFrom('sender@example.com')
    ->setTo('rcpt@example.com')
    ->setSubject('Hello')
    ->setBody('Plain text body', flowed: true)
    ->addAttachment('/path/to/file.pdf');

$composed = $builder->build();
$raw = MessageRenderer::render($composed->part, $composed->headers);

// Parse a message
$part = MimeParser::parse($rawMessage);
echo $part->fullType();        // e.g. "multipart/mixed"
echo $part->children[0]->body; // first child's decoded body

// Build parts directly
$part = PartBuilder::text('Hello world')->build();
$html = PartBuilder::html('Hello')->build();
$attachment = PartBuilder::attachment($data, 'report.pdf', 'application/pdf')->build();
```

Documentation
-------------

[](#documentation)

- [Upgrading from 2.x to 3.x](doc/UPGRADING.md)

License
-------

[](#license)

LGPL 2.1 - see [LICENSE](LICENSE) for details.

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance99

Actively maintained with recent releases

Popularity33

Limited adoption so far

Community43

Growing community involvement

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 55.8% 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 ~85 days

Recently: every ~22 days

Total

55

Last Release

8d ago

Major Versions

2.11.1 → 3.0.0alpha12021-02-24

2.11.2 → v3.0.0alpha42022-08-16

v2.13.2 → v3.0.0alpha62025-06-01

v2.14.0 → v3.0.0alpha72026-03-15

v2.14.1 → v3.0.0beta22026-04-01

PHP version history (8 changes)2.2.8PHP &gt;=5.3.0

2.3.2PHP &gt;=5.3.0,&lt;=6.0.0alpha1

2.9.3PHP &gt;=5.3.0,&lt;=8.0.0alpha1

2.11.0PHP ^5.3 || ^7

3.0.0alpha1PHP ^7

v2.12.0PHP ^7.4 || ^8.0

v3.0.0alpha4PHP ^7.4 || ^8

v2.14.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c943a083635c28520599075eaea7ede2d743b7697b76e84d6bdc37e52cc8249b?d=identicon)[yunosh](/maintainers/yunosh)

![](https://www.gravatar.com/avatar/c931cd02664859360478593450d6c473a05bb12b209dfacfc534cd13257cc7ef?d=identicon)[ralflang](/maintainers/ralflang)

![](https://www.gravatar.com/avatar/e4f6c6771993db2ed500959b42353f6cf6a2ca0406d9617f7ae680f4504faa4a?d=identicon)[horde](/maintainers/horde)

![](https://www.gravatar.com/avatar/a7767adb66b45f2f05bcd44d49bc4e67efacd9ce05b161ce2d481d5dd6af025c?d=identicon)[mrubinsk](/maintainers/mrubinsk)

![](https://www.gravatar.com/avatar/816e2b926f25f8cd2939054c7a7173011b4303d690e25ab61bf33cf8c7cf71ae?d=identicon)[tdannhauer](/maintainers/tdannhauer)

---

Top Contributors

[![slusarz](https://avatars.githubusercontent.com/u/381003?v=4)](https://github.com/slusarz "slusarz (646 commits)")[![yunosh](https://avatars.githubusercontent.com/u/379318?v=4)](https://github.com/yunosh "yunosh (319 commits)")[![mrubinsk](https://avatars.githubusercontent.com/u/66822?v=4)](https://github.com/mrubinsk "mrubinsk (121 commits)")[![ralflang](https://avatars.githubusercontent.com/u/646976?v=4)](https://github.com/ralflang "ralflang (48 commits)")[![wrobel](https://avatars.githubusercontent.com/u/10232?v=4)](https://github.com/wrobel "wrobel (6 commits)")[![TDannhauer](https://avatars.githubusercontent.com/u/6716033?v=4)](https://github.com/TDannhauer "TDannhauer (5 commits)")[![ChristophWurst](https://avatars.githubusercontent.com/u/1374172?v=4)](https://github.com/ChristophWurst "ChristophWurst (4 commits)")[![renan](https://avatars.githubusercontent.com/u/28046?v=4)](https://github.com/renan "renan (3 commits)")[![selsky](https://avatars.githubusercontent.com/u/380337?v=4)](https://github.com/selsky "selsky (1 commits)")[![bsod85](https://avatars.githubusercontent.com/u/9477994?v=4)](https://github.com/bsod85 "bsod85 (1 commits)")[![thomasjfox](https://avatars.githubusercontent.com/u/1146758?v=4)](https://github.com/thomasjfox "thomasjfox (1 commits)")[![powercycle](https://avatars.githubusercontent.com/u/2614846?v=4)](https://github.com/powercycle "powercycle (1 commits)")[![DeepDiver1975](https://avatars.githubusercontent.com/u/1005065?v=4)](https://github.com/DeepDiver1975 "DeepDiver1975 (1 commits)")

---

Tags

mailheaders

### Embed Badge

![Health badge](/badges/horde-mime/health.svg)

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

###  Alternatives

[horde/imp

Webmail application

261.3k](/packages/horde-imp)[horde/horde

Horde base application

583.0k71](/packages/horde-horde)[horde/imap_client

IMAP client library

275.5k22](/packages/horde-imap-client)[horde/kronolith

Calendar and scheduling application

101.5k5](/packages/horde-kronolith)

PHPackages © 2026

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