PHPackages                             sourcepot/php-ole-msg-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. sourcepot/php-ole-msg-parser

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

sourcepot/php-ole-msg-parser
============================

Minimal PHP library for parsing Outlook .msg files incl. attachments stored in OLE compound documents.

v1.2.1(2w ago)135↓20%1MITPHPPHP ^8.0

Since Nov 24Pushed 2w agoCompare

[ Source](https://github.com/SourcePot/php-ole-msg-parser)[ Packagist](https://packagist.org/packages/sourcepot/php-ole-msg-parser)[ RSS](/packages/sourcepot-php-ole-msg-parser/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (9)DependenciesVersions (10)Used By (1)

php-ole-msg-parser
==================

[](#php-ole-msg-parser)

Minimal PHP library for parsing Outlook .msg files stored in OLE compound documents. This packaged is derived from *koopa/php-ole-msg-parser*.

Features
--------

[](#features)

- Reads raw OLE compound streams without external dependencies
- Extracts headers, plain-text body, RTF body (as attachment) and attachments from .msg files
- Provides lightweight loader interfaces for custom property handling
- Test web page included: .../php-ole-msg-parser/src/www/index.php

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

[](#installation)

```
composer require sourcepot/php-ole-msg-parser
```

Usage
-----

[](#usage)

```
require __DIR__ . '/vendor/autoload.php';

$parser = new \Opt\OLE\MsgParser('path/to/message.msg');
$message = $parser->parse();

$headers = $message->headers;

$transportLayerRawHeaders=$headers['TRANSPORT_MESSAGE_HEADERS'];

$body = $message->body;

foreach ($message->attachments as $attachment){
    file_put_contents($attachment['filename'], $attachment['data']);
}
```

Requirements
------------

[](#requirements)

- PHP 8.0+
- mbstring extenstion

License
-------

[](#license)

MIT

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance96

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.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 ~22 days

Recently: every ~1 days

Total

9

Last Release

20d ago

PHP version history (2 changes)v1.0.0PHP ^7.4

v1.0.1PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/115737488?v=4)[Carsten Wallenhauer](/maintainers/SourcePot)[@SourcePot](https://github.com/SourcePot)

---

Top Contributors

[![SourcePot](https://avatars.githubusercontent.com/u/115737488?v=4)](https://github.com/SourcePot "SourcePot (13 commits)")[![koopa](https://avatars.githubusercontent.com/u/195897?v=4)](https://github.com/koopa "koopa (1 commits)")

---

Tags

msgoutlook

### Embed Badge

![Health badge](/badges/sourcepot-php-ole-msg-parser/health.svg)

```
[![Health](https://phpackages.com/badges/sourcepot-php-ole-msg-parser/health.svg)](https://phpackages.com/packages/sourcepot-php-ole-msg-parser)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M41](/packages/mck89-peast)[karriere/json-decoder

JsonDecoder implementation that allows you to convert your JSON data into PHP class objects

141439.4k12](/packages/karriere-json-decoder)[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.

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

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

45143.1k6](/packages/jstewmc-rtf)[json-mapper/laravel-package

The JsonMapper package for Laravel

25188.9k3](/packages/json-mapper-laravel-package)[jamesmoss/toml

A parser for TOML implemented in PHP.

3231.7k15](/packages/jamesmoss-toml)

PHPackages © 2026

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