PHPackages                             risentang/lumen-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. [Framework](/categories/framework)
4. /
5. risentang/lumen-modules

ActiveLibrary[Framework](/categories/framework)

risentang/lumen-modules
=======================

Laravel Module management

v1.0(7y ago)153MITPHPPHP &gt;=7.0

Since Apr 15Pushed 7y agoCompare

[ Source](https://github.com/risentang2333/lumen55-modules)[ Packagist](https://packagist.org/packages/risentang/lumen-modules)[ RSS](/packages/risentang-lumen-modules/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (6)Used By (0)

Lumen-Modules
=============

[](#lumen-modules)

本项目修改自 [nWidart/laravel-modules](https://github.com/nWidart/laravel-modules).

注：非常感谢 [nWidart/laravel-modules](https://github.com/nWidart/laravel-modules)提供的laravel模块化开发引擎，它非常清晰的分离开项目中每个业务模块的文件夹结构。 但由于lumen5.5的底层结构与laravel有很大不同，虽然nwidart本人为我们提供了对lumen的支持，但很遗憾，也许对lumen5.5版本框架来说，还是有一些bug，导致无法使用。通过我的研究，为大家提供一套基于lumen5.5版本的模块化开发引擎。

安装
--

[](#安装)

首先，您需要安装composer，安装完成后，执行以下命令

```
composer require risentang/lumen-modules
```

或者在composer.json的request中添加：

```
  "require": {
    "risentang/lumen-modules": "^1.0"
  }
```

运行

```
composer update
```

然后在\[bootstrap/app.php\]下添加

```
$app->configure('modules');
$app->register(\Risentang\Modules\LumenModulesServiceProvider::class);
```

在项目根目录中创建\[config\]文件夹，再将\[vender/risentang/lumen-modules/config/config.php\]复制到\[config\]中，改名为\[module.php\]

### 自动加载

[](#自动加载)

By default the module classes are not loaded automatically. You can autoload your modules using `psr-4`. For example: 由于默认module类没有加载进框架，你需要在autoload中`psr-4`添加如下配置

```
{
  "autoload": {
    "psr-4": {
      "App\\": "app/",
      "Modules\\": "Modules/"
    }
  }
}
```

并运行

```
composer dump-autoload
```

最后通过artisan指令来生成开发模块

```
php artisan module:make demo
```

官方文档
----

[](#官方文档)

如果想了解更多请登陆 查看文档内容.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 80.1% 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 ~77 days

Total

4

Last Release

2716d ago

Major Versions

1.0.x-dev → 2.0.x-dev2018-09-20

2.0.x-dev → 3.0.x-dev2018-09-20

PHP version history (3 changes)1.0.x-devPHP &gt;=5.5

2.0.x-devPHP &gt;=7.0

3.0.x-devPHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![nWidart](https://avatars.githubusercontent.com/u/882397?v=4)](https://github.com/nWidart "nWidart (464 commits)")[![Kyslik](https://avatars.githubusercontent.com/u/2067589?v=4)](https://github.com/Kyslik "Kyslik (34 commits)")[![mikemand](https://avatars.githubusercontent.com/u/745184?v=4)](https://github.com/mikemand "mikemand (10 commits)")[![Schweppesale](https://avatars.githubusercontent.com/u/175759?v=4)](https://github.com/Schweppesale "Schweppesale (10 commits)")[![KABBOUCHI](https://avatars.githubusercontent.com/u/9212274?v=4)](https://github.com/KABBOUCHI "KABBOUCHI (6 commits)")[![rjvandoesburg](https://avatars.githubusercontent.com/u/1488300?v=4)](https://github.com/rjvandoesburg "rjvandoesburg (5 commits)")[![jnbn](https://avatars.githubusercontent.com/u/112425?v=4)](https://github.com/jnbn "jnbn (4 commits)")[![ReinierH](https://avatars.githubusercontent.com/u/8132589?v=4)](https://github.com/ReinierH "ReinierH (4 commits)")[![balping](https://avatars.githubusercontent.com/u/5840038?v=4)](https://github.com/balping "balping (4 commits)")[![FaZeRs](https://avatars.githubusercontent.com/u/9529341?v=4)](https://github.com/FaZeRs "FaZeRs (4 commits)")[![arthvrian](https://avatars.githubusercontent.com/u/4997556?v=4)](https://github.com/arthvrian "arthvrian (3 commits)")[![salkhwlani](https://avatars.githubusercontent.com/u/10876587?v=4)](https://github.com/salkhwlani "salkhwlani (3 commits)")[![tentus](https://avatars.githubusercontent.com/u/3709892?v=4)](https://github.com/tentus "tentus (3 commits)")[![mathieutu](https://avatars.githubusercontent.com/u/11351322?v=4)](https://github.com/mathieutu "mathieutu (3 commits)")[![armababy](https://avatars.githubusercontent.com/u/219556?v=4)](https://github.com/armababy "armababy (2 commits)")[![cmtz93](https://avatars.githubusercontent.com/u/19395881?v=4)](https://github.com/cmtz93 "cmtz93 (2 commits)")[![deividaspetraitis](https://avatars.githubusercontent.com/u/5105752?v=4)](https://github.com/deividaspetraitis "deividaspetraitis (2 commits)")[![joaorobertopb](https://avatars.githubusercontent.com/u/6556083?v=4)](https://github.com/joaorobertopb "joaorobertopb (2 commits)")[![wuwx](https://avatars.githubusercontent.com/u/4401?v=4)](https://github.com/wuwx "wuwx (2 commits)")[![manojsb](https://avatars.githubusercontent.com/u/25655962?v=4)](https://github.com/manojsb "manojsb (1 commits)")

---

Tags

laravelmodulemodulesradrisentang

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[nwidart/laravel-modules

Laravel Module management

6.1k14.6M274](/packages/nwidart-laravel-modules)[internachi/modular

Modularize your Laravel apps

1.1k662.4k8](/packages/internachi-modular)[pingpong/modules

Laravel Modules

592188.7k13](/packages/pingpong-modules)[mhmiton/laravel-modules-livewire

Using Laravel Livewire in Laravel Modules package with automatically registered livewire components for every modules.

236409.6k9](/packages/mhmiton-laravel-modules-livewire)[artem-schander/l5-modular

Modular pattern generator for Laravel

223235.5k](/packages/artem-schander-l5-modular)

PHPackages © 2026

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