PHPackages                             johnylemon/explainer-lumen - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. johnylemon/explainer-lumen

ActiveLibrary[HTTP &amp; Networking](/categories/http)

johnylemon/explainer-lumen
==========================

API Explainer for Lumen Framework

1.0.1(6y ago)011MITPHP

Since May 16Pushed 6y agoCompare

[ Source](https://github.com/johnylemon/explainer-lumen)[ Packagist](https://packagist.org/packages/johnylemon/explainer-lumen)[ RSS](/packages/johnylemon-explainer-lumen/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

### Explainer for Laravel

[](#explainer-for-laravel)

A simple Laravel api documentation generator

### Features

[](#features)

This tool makes possible to explain every app route by using simple `explain` method via clean document accessible under configured route address.

### Installation

[](#installation)

- add `\Lemon\ExplainerLumen\Providers\ExplainerLumenServiceProvider` to your `app/bootstrap.php` file
- add `$this->configure('explainer')` to your `app/bootstrap.php` file after provider line
- change bootstrap Application to provided by this package by changingthis lines

```
// $app = new Laravel\Lumen\Application(
//     dirname(__DIR__)
// );

```

into this

```
$app = new Lemon\ExplainerLumen\Application(
    dirname(__DIR__)
);

```

- copy `vendor/johnylemon/explainer/config/explainer.php` file to your `config` directory

### How to use

[](#how-to-use)

Simply call `explain` method on your routes:

```
$router->get('/', 'IndexController@index')->explain(\App\Explains\IndexRouteExplain::class);

```

### Examples

[](#examples)

#### Explain file generation

[](#explain-file-generation)

To generate route explain file with name `IndexRouteExplain` in `app/Explains` directory simply type:

```
php artisan explain:route IndexRouteExplain

```

#### Explain example generation

[](#explain-example-generation)

To generate route explain example file with name `ValidationExample` in `app/Explains/Examples` directory simply type:

```
php artisan explain:example ValidationExample

```

#### generate documentation

[](#generate-documentation)

Simply type

```
php artisan explain

```

and... enjoy!

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

2444d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fadbe37c6fcf8d18f32fa9a1377f17dffa43fb929c046caf9e6727046bad181?d=identicon)[johnylemon](/maintainers/johnylemon)

---

Top Contributors

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

---

Tags

apirestswagger

### Embed Badge

![Health badge](/badges/johnylemon-explainer-lumen/health.svg)

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

###  Alternatives

[vyuldashev/laravel-openapi

Generate OpenAPI Specification for Laravel Applications

4571.2M](/packages/vyuldashev-laravel-openapi)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[tartanlegrand/laravel-openapi

Generate OpenAPI Specification for Laravel Applications

38178.7k2](/packages/tartanlegrand-laravel-openapi)

PHPackages © 2026

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