PHPackages                             gmodstore/php-gmad - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. gmodstore/php-gmad

ActiveLibrary[File &amp; Storage](/categories/file-storage)

gmodstore/php-gmad
==================

package / unpackage garry's mod gma files

1.1.0(8y ago)3431MITPHPCI failing

Since Mar 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/everyday-as/php-gmad)[ Packagist](https://packagist.org/packages/gmodstore/php-gmad)[ RSS](/packages/gmodstore-php-gmad/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

PHP Garry's Mod Addon Library
=============================

[](#php-garrys-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.

[![Latest Version](https://camo.githubusercontent.com/5d36e8f4d1799bae68c36a6d96efaabbba9c75fee6a0033bf697c3ccefccc7f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676d6f6473746f72652f7068702d676d61642e737667)](https://packagist.org/packages/gmodstore/php-gmad)[![Issues Open](https://camo.githubusercontent.com/65066642e8f84901ff76c976d4400b19285c7a6fb4dd57ed3d716388407ef9ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f676d6f6473746f72652f7068702d676d61642e737667)](https://github.com/gmodstore/php-gmad/issues)[![License](https://camo.githubusercontent.com/22b1ec26378f7eeb683668b7a0d498f9754243673eda6a725229fb9e637a71ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f676d6f6473746f72652f7068702d676d61642e737667)](https://github.com/gmodstore/php-gmad/blob/master/LICENSE)

Requirements
------------

[](#requirements)

- PHP &gt;=7.1 (64 bit)
- mdurrant/php-binary-reader

Code Examples
-------------

[](#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
-------

[](#license)

php-gmad is licensed under the [MIT License](LICENSE).

Copyright 2018 [Matt Stevens](http://handsomematt.co.uk/)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 90% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~31 days

Total

2

Last Release

2992d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b1a9a39f540b62d115b157a36eb3ebeb32274e5f287df35a4a19e873bf09385?d=identicon)[J0sh0nat0r](/maintainers/J0sh0nat0r)

![](https://avatars.githubusercontent.com/u/1388267?v=4)[Matt Stevens](/maintainers/handsomematt)[@handsomematt](https://github.com/handsomematt)

---

Top Contributors

[![handsomematt](https://avatars.githubusercontent.com/u/1388267?v=4)](https://github.com/handsomematt "handsomematt (18 commits)")[![JoshPiper](https://avatars.githubusercontent.com/u/32164094?v=4)](https://github.com/JoshPiper "JoshPiper (1 commits)")[![Marcuzz](https://avatars.githubusercontent.com/u/3168421?v=4)](https://github.com/Marcuzz "Marcuzz (1 commits)")

---

Tags

addongmadgmodphpphp-gmad

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gmodstore-php-gmad/health.svg)

```
[![Health](https://phpackages.com/badges/gmodstore-php-gmad/health.svg)](https://phpackages.com/packages/gmodstore-php-gmad)
```

###  Alternatives

[maennchen/zipstream-php

ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.

1.9k313.0M196](/packages/maennchen-zipstream-php)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k78.3k89](/packages/pocketmine-pocketmine-mp)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.5k902.0k22](/packages/danog-madelineproto)[buggregator/trap

A simple and powerful tool for debugging PHP applications.

2702.2M66](/packages/buggregator-trap)[phptg/bot-api

PHP library for working with Telegram API

12716.4k7](/packages/phptg-bot-api)[furqansiddiqui/ethereum-php

A modern, dependency-light Ethereum library powered by a clean cryptographic core

1825.7k1](/packages/furqansiddiqui-ethereum-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
