PHPackages                             trehinos/thor-message - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. trehinos/thor-message

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

trehinos/thor-message
=====================

Un module qui décrit des Internet Message (emails)

v1.0.1(2y ago)011MITPHPPHP ^8.2

Since Mar 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Trehinos/thor-message)[ Packagist](https://packagist.org/packages/trehinos/thor-message)[ RSS](/packages/trehinos-thor-message/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Thor message
============

[](#thor-message)

An implementation of :

- RFC2045 - Headers &amp; Parts
- RFC2047 - UTF-8 Headers
- RFC2046 - MIME Media

Usage example
-------------

[](#usage-example)

```
// Sends an HTML email.
new Email("no-reply@example.com", "A new email", "Hello world !")->send("to@example.com");
```

When the `Email` class is used, the `Message` has this structure :

[![example-Email.png](example-Email.png)](example-Email.png)

```
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: multipart/mixed
            ; boundary=84c404c31237e2491437c353b37a799b

--84c404c31237e2491437c353b37a799b
Content-Type: multipart/related
            ; boundary=7ef3cbec608868ef75792de0cee172f6

--7ef3cbec608868ef75792de0cee172f6
Content-Transfer-Encoding: base64
Content-Type: text/html
            ; charset="utf-8"
Content-Disposition: inline

PGh0bWwgbGFuZz0iZW4iPgo8aGVhZD4KICAgIDxtZXRhIGNoYXJzZXQ9InV0
Zi04Ij4KICAgIDx0aXRsZT5BIG5ldyBlbWFpbDwvdGl0bGU+CjwvaGVhZD4K
PGJvZHk+SGVsbG8gd29ybGQgITwvYm9keT4KPC9odG1sPg==

--7ef3cbec608868ef75792de0cee172f6
Content-Transfer-Encoding: base64
Content-Type: image/png
            ; name="image.png"
Content-Disposition: inline
Content-ID:
Content-Location: image.png

## IMAGE-DATA ##

--7ef3cbec608868ef75792de0cee172f6--

--84c404c31237e2491437c353b37a799b
Content-Transfer-Encoding: base64
Content-Type: application/octet-stream
            ; name="other-file.pdf"
Content-Disposition: attachment; filename="other-file.pdf"
Content-ID:
Content-Location: other-file.pdf

## FILE-DATA ##

--84c404c31237e2491437c353b37a799b--

```

License
-------

[](#license)

© 2023-2024 Sébastien Geldreich.

Distributed under the [MIT License](LICENSE).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

2

Last Release

829d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3908278?v=4)[Trehinos](/maintainers/Trehinos)[@Trehinos](https://github.com/Trehinos)

---

Top Contributors

[![Trehinos](https://avatars.githubusercontent.com/u/3908278?v=4)](https://github.com/Trehinos "Trehinos (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/trehinos-thor-message/health.svg)

```
[![Health](https://phpackages.com/badges/trehinos-thor-message/health.svg)](https://phpackages.com/packages/trehinos-thor-message)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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