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

ActiveLibrary

clarence/laravel-default-routes
===============================

Default routes for laravel

v1.0.6(10y ago)10141MITPHPPHP &gt;=5.5

Since Apr 22Pushed 10y ago1 watchersCompare

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

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

Default Routes For Laravel
==========================

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

[![build status](https://camo.githubusercontent.com/90dff819f18f20fce86a7d5bdbed9490ad014079807f8f771769d4b58348218f/68747470733a2f2f7472617669732d63692e6f72672f436c6172656e63652d70616e2f6c61726176656c2d64656661756c742d726f757465732e737667)](https://camo.githubusercontent.com/90dff819f18f20fce86a7d5bdbed9490ad014079807f8f771769d4b58348218f/68747470733a2f2f7472617669732d63692e6f72672f436c6172656e63652d70616e2f6c61726176656c2d64656661756c742d726f757465732e737667)

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

Install
=======

[](#install)

Suggest install it via composer:

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

Then, register the `DefaultRouteProvider`. For example, add `\Clarence\LaravelDefaultRoutes\DefaultRouteProvider::class` to the `providers` section in `config/app.php`.

```
// config/app.php
return [

    //...

    'providers' => [
        //...
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,

        Clarence\LaravelDefaultRoutes\DefaultRouteProvider::class,  // add DefaultRouteProvider below the RouteServiceProvider

        //...

    ],

    //...

];
```

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 `laravel-default-routes.controller-prefix`.
2. In `FooController`, `Controller` is the class name suffix. It can be configurated as `laravel-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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

7

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 (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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