PHPackages                             dawnki/laroute - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dawnki/laroute

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dawnki/laroute
==============

Auto generate Laravel router's statement by phpdoc

019PHP

Since Sep 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Dawnki/laroute)[ Packagist](https://packagist.org/packages/dawnki/laroute)[ RSS](/packages/dawnki-laroute/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

laroute
=======

[](#laroute)

Auto generate Laravel router's statement by phpdoc

Usage
-----

[](#usage)

1.Import the vendor

```
composer require dawnki/laroute dev-master
```

2.write the phpdoc in Laravel controller

```
class TestController {
    /**
     *  @method GET
     *  @route  /test
     */
    function test()
    {
        // your code
    }
}
```

3.call the generator to get the route statements

```
    $generator =  new \dawnki\laroute\Generate();
    $generator->getOne(\App\Http\Controller\TestController::class)->display();
```

it will be export that:

```
Route::get('/test',['uses'=>'TestController@test']);
...
...

```

and copy these route statements to route

Todo
----

[](#todo)

- Directly export the statements to route file
- Support multi files(controllers)

License
-------

[](#license)

MIT

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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://avatars.githubusercontent.com/u/14870739?v=4)[Dawnki](/maintainers/Dawnki)[@Dawnki](https://github.com/Dawnki)

---

Top Contributors

[![Dawnki](https://avatars.githubusercontent.com/u/14870739?v=4)](https://github.com/Dawnki "Dawnki (8 commits)")

### Embed Badge

![Health badge](/badges/dawnki-laroute/health.svg)

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

###  Alternatives

[aimes/module-checkout-designs

Swap checkout layouts via system configuration, or conditions

3312.4k1](/packages/aimes-module-checkout-designs)

PHPackages © 2026

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