Skip to content

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

License

Notifications You must be signed in to change notification settings

cipherxof/PHP-MPQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-MPQ

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");
?>

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages