PHPackages                             starbug/modules - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. starbug/modules

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

starbug/modules
===============

A very simple module management layer.

v1.1.0(4mo ago)04.7k↓50%GPL-3.0-or-laterPHP

Since Jan 16Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/cogentParadigm/starbug-modules)[ Packagist](https://packagist.org/packages/starbug/modules)[ RSS](/packages/starbug-modules/feed)WikiDiscussions master Synced 1mo ago

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

Modules
=======

[](#modules)

This package brings together components for a module system. The main component is starbug/composer-modules-plugin, to which this package adds some more opinionated runtime interfaces.

What's included
===============

[](#whats-included)

- [composer/installers](https://github.com/composer/installers) Composer installer plugin to place modules outside of vendor.
- [starbug/composer-modules-plugin](https://github.com/cogentParadigm/composer-modules-plugin) Composer plugin to generate an ordered module list.
- starbug/modules Includes a simple interface for runtime module management.

Usage
=====

[](#usage)

```
// vendor/modules.php is generated by starbug/composer-modules-plugin from the installed composer packages.
$modules = include("vendor/modules.php");

$config = new Starbug\Modules\Configuration($modules);

// Enable a module
$config->enable("my-module");

// Disable a module
$config->disable("my-module");

// Enable multiple modules
$config->enableAll(["type" => "module"]);

// Disable multiple modules
$config->disableAll(["type" => "theme"]);

// Get enabled modules
$config->getEnabled();

// Get all modules
$config->getModules();

// Get module properties
$config->get("my-module")

// Get module property
$config->get("my-module", "path");
```

Note that `vendor/modules.php` is the list of registered modules. See [starbug/composer-modules-plugin](https://github.com/cogentParadigm/composer-modules-plugin) for details on how it's generated.

For [composer/installers](https://github.com/composer/installers) to work, you must be using one of the predefined package types.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance75

Regular maintenance activity

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~604 days

Total

4

Last Release

136d ago

Major Versions

v0.8.1 → v1.0.02025-10-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/a27b5508a6c31270cbecbe0e0bb0602944c9a1c40852159eb4fdfa7037ec318b?d=identicon)[cogent](/maintainers/cogent)

---

Top Contributors

[![cogentParadigm](https://avatars.githubusercontent.com/u/78707?v=4)](https://github.com/cogentParadigm "cogentParadigm (4 commits)")

### Embed Badge

![Health badge](/badges/starbug-modules/health.svg)

```
[![Health](https://phpackages.com/badges/starbug-modules/health.svg)](https://phpackages.com/packages/starbug-modules)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[humanmade/lottie-lite

A lightweight Lottie Animations Extension for WordPress

374.3k](/packages/humanmade-lottie-lite)

PHPackages © 2026

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