PHPackages                             clarence/lumen-default-routes - 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. clarence/lumen-default-routes

ActiveLibrary[Framework](/categories/framework)

clarence/lumen-default-routes
=============================

Default routes for laravel

v1.0.5(10y ago)2351[1 issues](https://github.com/Clarence-pan/lumen-default-routes/issues)MITPHPPHP &gt;=5.5

Since Apr 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Clarence-pan/lumen-default-routes)[ Packagist](https://packagist.org/packages/clarence/lumen-default-routes)[ RSS](/packages/clarence-lumen-default-routes/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

Default Routes For Lumen
========================

[](#default-routes-for-lumen)

[![build status](https://camo.githubusercontent.com/f97f6346e85c3d9e52dc2ab6533d67513a0dbd5da22916e9ae53939f36eebe13/68747470733a2f2f7472617669732d63692e6f72672f436c6172656e63652d70616e2f6c756d656e2d64656661756c742d726f757465732e737667)](https://camo.githubusercontent.com/f97f6346e85c3d9e52dc2ab6533d67513a0dbd5da22916e9ae53939f36eebe13/68747470733a2f2f7472617669732d63692e6f72672f436c6172656e63652d70616e2f6c756d656e2d64656661756c742d726f757465732e737667)

With this library, you can easily add "module/controller/action" style routes for Lumen.

Install
=======

[](#install)

Suggest install it via composer:

```
composer require clarence/lumen-default-routes
```

Then, register the `DefaultRouteProvider`. For lumen, please register `\Clarence\LumenDefaultRoutes\DefaultRouteProvider::class` in `bootstrap/app.php`.

```
// bootstrap/app.php

$app = new Laravel\Lumen\Application(
    realpath(__DIR__.'/../')
);

//...

$app->group(['namespace' => 'App\Http\Controllers'], function ($app) {
    require __DIR__.'/../app/Http/routes/main_routes.php';
});

$app->register(Clarence\LumenDefaultRoutes\DefaultRouteProvider::class); // add: register default routes below registered all your own routes
```

Routes Maps
===========

[](#routes-maps)

`foo/bar` will be mapped to `\App\Http\Controllers\FooController@doGetBar` by default.

Note:

1. `\App\Http\Controllers\` is the namespace prefix of the controller. It can be configurated as `default-routes.controller-prefix`.
2. In `FooController`, `Controller` is the class name suffix. It can be configurated as `default-routes.controller-suffix`.
3. `doGetBar` is the actual method to be executed. It is `do` + `` + ``. And it should be a `public` method. Otherwise a `404` or `405` HTTP error will be thrown.
4. If `\App\Http\Controllers\FooController@doGetBar` cannot be found, `\App\Http\Controllers\Foo\BarController@doGetIndex` will be tried.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Total

6

Last Release

3672d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6440e0a9290b2e59c6c088202673fe19172717b7476ba4c821936a62d227d3f8?d=identicon)[Clarence-pan](/maintainers/Clarence-pan)

---

Top Contributors

[![Clarence-pan](https://avatars.githubusercontent.com/u/8750132?v=4)](https://github.com/Clarence-pan "Clarence-pan (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/clarence-lumen-default-routes/health.svg)

```
[![Health](https://phpackages.com/badges/clarence-lumen-default-routes/health.svg)](https://phpackages.com/packages/clarence-lumen-default-routes)
```

PHPackages © 2026

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