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 2mo 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 64% 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

2945d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/0cfdc312bcffdd29d51b41bffb1ee8162d46868cffa3e6ae90177b370cc241cf?d=identicon)[handsomematt](/maintainers/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.9k286.3M147](/packages/maennchen-zipstream-php)[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)

PHPackages © 2026

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