PHPackages                             grimbees/docrouter - 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. [API Development](/categories/api)
4. /
5. grimbees/docrouter

ActiveLibrary[API Development](/categories/api)

grimbees/docrouter
==================

Document Router is a Laravel library that allow you to define routing on controller documentation

13PHP

Since Dec 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/grimbees/docrouter)[ Packagist](https://packagist.org/packages/grimbees/docrouter)[ RSS](/packages/grimbees-docrouter/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Documentation Router for Laravel
================================

[](#documentation-router-for-laravel)

Allow routing on controller class and method documentation

To install on laravel root directory terminal type **composer require grimbees/docrouter**

Supported annotation on controller class:
**@middleware values**, values would be any middleware that is registered
**@prefix values**, values would be any url escaped string

Supported annotation on controller method:
**@method values**, values would be **any, post, get**
**@route values**, values would be any url escaped string

To get started:
Add **GrimBees\\DocRouter\\DocRouterServiceProvider::class** to **config/app.php** on **$providers**

Example: **MyController.php**

```
namespace App\Http\Controllers;

/**
 * Class MyController
 * @middleware web
 * @prefix my
 */
class MyController extends Controller
{

    /**
     * @method any
     * @route test
     */
    public function test() {
        return "test";
    }

}
```

Type **composer dump-autoload** is required for new controller

Test controller method will be exposed on */my/test*

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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/1b6c639de02c83eec743edb5319cc55e92d5f395b5c05c199ef5e801ef962424?d=identicon)[grimbees](/maintainers/grimbees)

---

Top Contributors

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

---

Tags

annotationcontrollerdiscovery-interfacedocumentationlaravel5router

### Embed Badge

![Health badge](/badges/grimbees-docrouter/health.svg)

```
[![Health](https://phpackages.com/badges/grimbees-docrouter/health.svg)](https://phpackages.com/packages/grimbees-docrouter)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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