rogiel/mpq

A MPQ reader in PHP

0.2.3 2016-07-24 02:50 UTC

This package is not auto-updated.

Last update: 2024-04-24 21:59:22 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