rogiel / mpq
A MPQ reader in PHP
Installs: 88
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/rogiel/mpq
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ^4.8.1
This package is not auto-updated.
Last update: 2025-10-09 04:54:13 UTC
README
This library allows you to read MPQ files from PHP.
Installation
The recommended way of installing this library is using Composer.
composer require "rogiel/mpq"
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
- Encrypted files (parcial support)
- File writing