PHPackages                             chatbox-inc/lumen-app - 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. chatbox-inc/lumen-app

ActiveLibrary

chatbox-inc/lumen-app
=====================

1221PHP

Since Aug 14Pushed 9y ago2 watchersCompare

[ Source](https://github.com/chatbox-inc/lumen-app)[ Packagist](https://packagist.org/packages/chatbox-inc/lumen-app)[ RSS](/packages/chatbox-inc-lumen-app/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Lumen アプリケーション・フレームワーク
======================

[](#lumen-アプリケーションフレームワーク)

[![Latest Stable Version](https://camo.githubusercontent.com/0fe54336c0fb20659749c97d8a7b4ab84d485f6464283e56fdbab9078daa4940/68747470733a2f2f706f7365722e707567782e6f72672f63686174626f782d696e632f6c756d656e2d6170702f76657273696f6e)](https://packagist.org/packages/chatbox-inc/lumen-app)

アプリケーションで必須の構成ResponseとExceptionをコンテナに登録する。

内部構造
----

[](#内部構造)

### Exception Handler

[](#exception-handler)

ExceptionHandler はデフォルトをベースに、 render側では `\Chatbox\LumenApp\RequestRendererInterface::renderException()`に例外をPassするだけの対応

例外処理に伴う切り分けの責務などは`\Chatbox\LumenApp\RequestRendererInterface`に委譲し、 ExceptionHandlerでは例外の切り替えを行うのみに徹する。

### \\Chatbox\\LumenApp\\RequestRendererInterface

[](#chatboxlumenapprequestrendererinterface)

コンテンツ及び例外のRenderに関する一切の処理を司る。

Middlewareから参照して全てのContents付きResponseを整形したり、

受け取ったExceptionを処理してResponseに変換したりする。

#### `renderContent()`

[](#rendercontent)

暗黙のコールを仕様に含まない。

Middleware等でResponse処理の共通整形などをかける際に利用する。

#### `renderException()`

[](#renderexception)

ExceptionHandler内でコールされる。

Usage
-----

[](#usage)

Service Provider を登録して利用

```
$app->register(\Chatbox\LumenApp\LumenAppServiceProvider::class);

```

挙動の制御はコンテナ登録or書き換えを経由して行う。

レスポンス周りを修正する場合は`ResponseFactoryInterface::class`で修正。

```
$app->singleton(ResponseFactoryInterface::class,function(){
    return new APIResponse();
});

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

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/a0dd32f123fcf9eb9a5a7a8ac609266eb470babf23631c3687d59d28c067396f?d=identicon)[mikakane](/maintainers/mikakane)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/chatbox-inc-lumen-app/health.svg)

```
[![Health](https://phpackages.com/badges/chatbox-inc-lumen-app/health.svg)](https://phpackages.com/packages/chatbox-inc-lumen-app)
```

PHPackages © 2026

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