PHPackages                             martynbiz/slim-module - 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. [Framework](/categories/framework)
4. /
5. martynbiz/slim-module

ActiveLibrary[Framework](/categories/framework)

martynbiz/slim-module
=====================

012PHP

Since Apr 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/martynbiz/slim-module)[ Packagist](https://packagist.org/packages/martynbiz/slim-module)[ RSS](/packages/martynbiz-slim-module/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Slim v3 module
==============

[](#slim-v3-module)

Introduction
------------

[](#introduction)

Modules for Slim3

Installation
------------

[](#installation)

Composer

```
"require-dev": {
    "martynbiz/slim3-module": "dev-master"
}
```

Simple Usage
------------

[](#simple-usage)

This library expects a modules directory somewhere, and within that module directories:

```
modules/
├── hello
│   └── module.php

```

Each module file will contain code required for that module. More advanced setups may include sub-directories.

routes.php

```
$module = new \MartynBiz\Slim3Module\Module($app, [
    'modules_dir' => APPLICATION_PATH . '/modules',
]);

$module->load('hello');
```

home/module.php

```
$app->get('/hello/{name}', function (Request $request, Response $response) {
    $name = $request->getAttribute('name');
    $response->getBody()->write("Hello, $name");

    return $response;
});
```

Advanced Usage
--------------

[](#advanced-usage)

...

Modules within modules
----------------------

[](#modules-within-modules)

...

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/martynbiz-slim-module/health.svg)

```
[![Health](https://phpackages.com/badges/martynbiz-slim-module/health.svg)](https://phpackages.com/packages/martynbiz-slim-module)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M836](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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