PHPackages                             nigelgreenway/route-generator-plugin - 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. nigelgreenway/route-generator-plugin

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

nigelgreenway/route-generator-plugin
====================================

A route generation plugin for the League/Route package

06[2 issues](https://github.com/NigelGreenway/route-generator-plugin/issues)PHP

Since Jul 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/NigelGreenway/route-generator-plugin)[ Packagist](https://packagist.org/packages/nigelgreenway/route-generator-plugin)[ RSS](/packages/nigelgreenway-route-generator-plugin/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

route-generator-plugin
======================

[](#route-generator-plugin)

A route generation plugin for the League/Route package.

Install
-------

[](#install)

Via Composer

```
$ composer require league/route-generator-plugin
```

Usage
-----

[](#usage)

```
$generator = new Route\Generator\RouteGenerator([
    'hello_module' => [
        'hello_world' => [
            'pattern'    => '/hello/world',
            'controller' => function() {
                echo 'Hello world.';
            },
            'method'     => ['GET'],
        ],
        'hello_person' => [
            'pattern'    => '/hello/{name}',
            'controller' => function($name) {
                echo 'Hello '.$name;
            }
        ],
    ],
]);
echo $generator->generate('hello_word');
// /hello/world

echo $generator->generate('hello_person', ['name' => 'Timmy Mallet']);
// /hello/Timmy+Mallet
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer tests
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email [nigel\_greenway@me.com](mailto:nigel_greenway@me.com) instead of using the issue tracker.

Credits
-------

[](#credits)

- [Nigel Greenway](https://github.com/NigelGreenway)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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/d4b8f102de0c4c8eff3bfc941575e8c6877412d901725e85cd3eae9bda149166?d=identicon)[NigelGreenway](/maintainers/NigelGreenway)

### Embed Badge

![Health badge](/badges/nigelgreenway-route-generator-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/nigelgreenway-route-generator-plugin/health.svg)](https://phpackages.com/packages/nigelgreenway-route-generator-plugin)
```

###  Alternatives

[mistic100/randomcolor

Generate attractive random colors

2451.5M6](/packages/mistic100-randomcolor)[khill/php-duration

Converts between colon formatted time, human-readable time and seconds

1611.8M21](/packages/khill-php-duration)[staudenmeir/dusk-updater

Updater for Laravel Dusk ChromeDriver binaries

1242.4M1](/packages/staudenmeir-dusk-updater)[pragmarx/ia-arr

Laravel Illuminate Agnostic Arr

543.7M21](/packages/pragmarx-ia-arr)[timothyasp/nova-color-field

A Laravel Nova Color Picker field.

771.7M6](/packages/timothyasp-nova-color-field)

PHPackages © 2026

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