mirror of
https://github.com/Rogiel/php-mpq
synced 2025-12-06 00:13:04 +00:00
Initial commit
This commit is contained in:
24
README.md
Normal file
24
README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# A PHP library for MPQ reading
|
||||
|
||||
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');
|
||||
$stream = $file->openStream('replay.details');
|
||||
while($data = $stream->readBytes(100)) {
|
||||
echo $data;
|
||||
}
|
||||
|
||||
## TODO
|
||||
|
||||
* Encrypted files (parcial support)
|
||||
* File writing
|
||||
Reference in New Issue
Block a user