PHPackages                             vdauchy/laravel-routing-extender - 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. [Framework](/categories/framework)
4. /
5. vdauchy/laravel-routing-extender

ActiveLibrary[Framework](/categories/framework)

vdauchy/laravel-routing-extender
================================

0.2.0(5y ago)066MITPHPPHP ^7.4|^8.0

Since Jan 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/vdauchy/laravel-routing-extender)[ Packagist](https://packagist.org/packages/vdauchy/laravel-routing-extender)[ RSS](/packages/vdauchy-laravel-routing-extender/feed)WikiDiscussions develop Synced yesterday

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

**Laravel Routing Extender**

This package extends Laravel's core routing services.

- Add support for optional parameters in the middle of routes using the macro `optionalParameterGroup` as:

```
// In Routes/web.php:
Route::optionalParameterGroup('hreflang', '^[a-z]{2}(?:\-[a-z]{2})?$', ['as' => 'Hreflang::'], function () {
    Route::get('home')->name('home');
});

// In YourCode.php:
route('Hreflang::home', []); // Will return `/home`
route('Hreflang::home', ['hreflang' => 'en-us']); // Will return `/en-us/home`
```

- Add support for custom route resolver in UrlGenerator by adding the macro `customRouteResolver` as.

```
// In xxxProvider.php
URL::macro('customRouteResolver', function($name, $parameters, $absolute): ?\Illuminate\Routing\Route {
    if ($name instanceof CustomClassA::class) {
        return $name->getRoute();
    }
    if ($name instanceof CustomClassB::class) {
        return $name->generateRoute();
    }
    return null;
});

// In YourCode.php:
route($instanceClassA); // Will generate the url from the Route object return by `$instanceClassA->getRoute()`
route($instanceClassB); // Will generate the url from the Route object return by `$instanceClassB->generateRoute()`
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~56 days

Total

2

Last Release

1879d ago

PHP version history (2 changes)0.1.0PHP ^7.4

0.2.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a70faaa292ccf8df691bd07c64832c6572c64b1bda53200975fddc3e0dcfebdf?d=identicon)[vdauchy](/maintainers/vdauchy)

---

Top Contributors

[![vdauchy](https://avatars.githubusercontent.com/u/26772554?v=4)](https://github.com/vdauchy "vdauchy (2 commits)")

### Embed Badge

![Health badge](/badges/vdauchy-laravel-routing-extender/health.svg)

```
[![Health](https://phpackages.com/badges/vdauchy-laravel-routing-extender/health.svg)](https://phpackages.com/packages/vdauchy-laravel-routing-extender)
```

###  Alternatives

[livewire/livewire

A front-end framework for Laravel.

23.5k75.5M1.8k](/packages/livewire-livewire)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.4k10.6M274](/packages/laravel-boost)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/wayfinder

Generate TypeScript representations of your Laravel actions and routes.

1.7k4.1M69](/packages/laravel-wayfinder)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)

PHPackages © 2026

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