This library allows you to read MPQ files from PHP.
The recommended way of installing this library is using Composer.
composer require "rogiel/mpq"
use Rogiel\MPQ\MPQFile;
$file = MPQFile::parseFile(__DIR__.'/test.SC2Replay');
$file->parse();
$stream = $file->openStream('replay.details');
while($data = $stream->readBytes(100)) {
echo $data;
}
- Encrypted files (parcial support)
- File writing