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 1w ago

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 12% 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

[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.9k1](/packages/phpactor-phpactor)[webfactor/laravel-backpack-instant-fields

Instant fields to create/edit/delete related entities on the fly in Laravel Backpack

486.9k](/packages/webfactor-laravel-backpack-instant-fields)

PHPackages © 2026

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