PHPackages                             memran/marwa-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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. memran/marwa-module

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

memran/marwa-module
===================

Framework-agnostic, PSR-11 friendly module management library for PHP apps (Marwa ecosystem compatible).

v1.0.1(1mo ago)0721MITPHPPHP &gt;=8.2

Since Mar 30Pushed 6mo agoCompare

[ Source](https://github.com/memran/marwa-module)[ Packagist](https://packagist.org/packages/memran/marwa-module)[ RSS](/packages/memran-marwa-module/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (3)Used By (1)

marwa-module
============

[](#marwa-module)

[![PHP Version](https://camo.githubusercontent.com/c7faddf23d1405ca0da092fe44ce00b5da4a99344f9d1d7d6d88f81b11a1d7f2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230382e312d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/c7faddf23d1405ca0da092fe44ce00b5da4a99344f9d1d7d6d88f81b11a1d7f2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230382e312d626c75653f7374796c653d666c61742d737175617265)[![Downloads](https://camo.githubusercontent.com/2aa6689c021db13c1604819ac364ea0e7a581ed9143eb405de9806c95d42ec17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d656d72616e2f6d617277612d6d6f64756c653f636f6c6f723d627269676874677265656e267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2aa6689c021db13c1604819ac364ea0e7a581ed9143eb405de9806c95d42ec17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d656d72616e2f6d617277612d6d6f64756c653f636f6c6f723d627269676874677265656e267374796c653d666c61742d737175617265)[![License](https://camo.githubusercontent.com/28b92ce3d7f2d6984cabfabc120bcc3fda2fcccc9bd6b7fbed24902bb7fef3f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6c69676874677265793f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/28b92ce3d7f2d6984cabfabc120bcc3fda2fcccc9bd6b7fbed24902bb7fef3f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6c69676874677265793f7374796c653d666c61742d737175617265)

A **framework-agnostic, PSR-11–friendly module management library** for PHP.

It enables modular application architecture — each module is self-contained with its own `manifest.php`, routes, views, models, and service provider.
**marwa-module** discovers and bootstraps them automatically.

---

✨ Features
----------

[](#-features)

- 📁 Filesystem and Composer-based module discovery
- 🚀 One entry point (`ModulesServiceProvider`)
- 🧱 `ModuleBuilder` for clean module introspection
- 🧾 PHP or JSON manifest format
- ⚡ Static in-memory caching for instant reloads
- 💤 Lazy loading of routes, events, and commands
- 🔌 Framework-agnostic, PSR-11 compatible
- 🧪 Unit tested with PHPUnit

---

Directory structure
-------------------

[](#directory-structure)

```
project-root/
  src/
  vendor/
  modules/
    User/
      manifest.php
      src/
        Controllers/
        Models/
        Views/
        Commands/
        Events/
        Migrations/
        Entity/
      routes/
        http.php
    Billing/
      manifest.json

```

Installing
----------

[](#installing)

```
composer require memran/marwa-module
```

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

[](#requirements)

- PHP 8.1+
- PSR-11 container (or adapter that implements it)
- Filesystem access to /modules

License
-------

[](#license)

MIT

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance78

Regular maintenance activity

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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 ~3 days

Total

2

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cf906a31a250a940314fe42f8a18f449647bfe18095457350ff0081cf8dd3c2?d=identicon)[memran](/maintainers/memran)

---

Top Contributors

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

---

Tags

phpPSR-11discoverymodulesMarwa

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/memran-marwa-module/health.svg)

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

###  Alternatives

[devanych/di-container

Simple implementation of a PSR-11 dependency injection container

124.2k3](/packages/devanych-di-container)

PHPackages © 2026

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