Handle the MPQ (MoPaQ) format natively from PHP with support for Warcraft III & Starcraft II.

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 19

Watchers: 3

Forks: 6

Type:project

dev-master 2018-07-31 04:22 UTC

This package is not auto-updated.

Last update: 2024-03-17 02:42:33 UTC


README

Handle the MPQ (MoPaQ) format natively from PHP.

Supported Archives:

  • MPQ Archives (v1.0)
  • Warcraft III Maps
  • Warcraft III Campaigns
  • Starcraft II Maps

Supported Compressions:

  • Gzip
  • Bzip2
  • IMA ADPCM (Mono/Stereo)
  • Huffman

Demo: https://www.wc3maps.com/

Installation

Requires: Composer

Clone the repository and run composer install

Example

<?php
require __DIR__ . '/vendor/autoload.php';

use TriggerHappy\MPQ\MPQArchive;

$mpq = new MPQArchive("wc3map.w3x");
echo $mpq->readFile("war3map.j");
?>