PHPackages                             rogiel/mpq - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. rogiel/mpq

ActiveLibrary[File &amp; Storage](/categories/file-storage)

rogiel/mpq
==========

A MPQ reader in PHP

0.2.3(9y ago)113122BSD-2.0PHPPHP &gt;=5.4CI failing

Since Jan 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Rogiel/php-mpq)[ Packagist](https://packagist.org/packages/rogiel/mpq)[ Docs](https://github.com/rogiel/php-mpq)[ RSS](/packages/rogiel-mpq/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (6)Used By (2)

A PHP library for MPQ reading
=============================

[](#a-php-library-for-mpq-reading)

This library allows you to read MPQ files from PHP.

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

[](#installation)

The recommended way of installing this library is using Composer.

```
composer require "rogiel/mpq"

```

Example
-------

[](#example)

```
use Rogiel\MPQ\MPQFile;

$file = MPQFile::parseFile(__DIR__.'/test.SC2Replay');
$file->parse();
$stream = $file->openStream('replay.details');
while($data = $stream->readBytes(100)) {
	echo $data;
}

```

TODO
----

[](#todo)

- Encrypted files (parcial support)
- File writing

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.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 ~50 days

Total

5

Last Release

3632d ago

### Community

Maintainers

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

---

Top Contributors

[![Rogiel](https://avatars.githubusercontent.com/u/755798?v=4)](https://github.com/Rogiel "Rogiel (10 commits)")[![WebReborn](https://avatars.githubusercontent.com/u/28151868?v=4)](https://github.com/WebReborn "WebReborn (1 commits)")

---

Tags

file managementMPQ

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rogiel-mpq/health.svg)

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

###  Alternatives

[xi/filelib

File library for PHP

2254.5k2](/packages/xi-filelib)[farhanshares/laravel-mediaman

MediaMan - The most elegant &amp; powerful media management package for Laravel!

314.2k](/packages/farhanshares-laravel-mediaman)

PHPackages © 2026

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