library php-gmad
package / unpackage garry's mod gma files
gmodstore/php-gmad
package / unpackage garry's mod gma files
- Sunday, April 22, 2018
- by handsomematt
- Repository
- 2 Watchers
- 2 Stars
- 9 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 3 Versions
- 200 % Grown
PHP Garry's Mod Addon Library
PHP Garry's Mod Addon Library (php-gmad) is a PHP library for handling and manipulation of Garry's Mod addon files (.gmad).
These files provide a description of the addon and a filesystem of the addon, both can be managed using this library., (*1)
, (*2)
Requirements
- PHP >=7.1 (64 bit)
- mdurrant/php-binary-reader
Code Examples
$gma_data = fopen(__DIR__ . '/gmas/test.gma', 'rb');
$reader = new AddonReader($gma_data);
$reader->parse(); // throws
$addon = $reader->getAddon();
echo $addon . PHP_EOL;
echo count($addon->getFileIndex()) . ' file(s): ' . PHP_EOL;
foreach ($addon->getFileIndex() as $file) {
echo "\t" . $file->getFileNumber() . '. ' . $file->getPath() . ' @ ' . $file->getOffset() . ' : ' . $file->getSize() . ' bytes' . PHP_EOL;
}
License
php-gmad is licensed under the MIT License., (*3)
Copyright 2018 Matt Stevens, (*4)
dev-master
9999999-dev
package / unpackage garry's mod gma files
Sources
Download
MIT
The Requires
The Development Requires
by
Matt Stevens
1.1.0
1.1.0.0
package / unpackage garry's mod gma files
Sources
Download
MIT
The Requires
The Development Requires
by
Matt Stevens
1.0.0
1.0.0.0
package / unpackage garry's mod gma files
Sources
Download
MIT
The Requires
The Development Requires
by
Matt Stevens