PHPackages                             kmuenkel/route-injection - 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. kmuenkel/route-injection

ActiveLibrary[Framework](/categories/framework)

kmuenkel/route-injection
========================

Allow for Laravel Controller method injection of \*any\* object type.

v1.0.8(5y ago)0261MITPHP

Since Dec 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kmuenkel/route-injection)[ Packagist](https://packagist.org/packages/kmuenkel/route-injection)[ RSS](/packages/kmuenkel-route-injection/feed)WikiDiscussions master Synced yesterday

READMEChangelog (9)Dependencies (11)Versions (11)Used By (0)

Route Injection Bindings
========================

[](#route-injection-bindings)

Inspired by Laravel's [Route Model Binding](https://laravel.com/docs/8.x/routing#route-model-binding), this package takes that a step further, and allows for Controller method injection of *any* object type.

1. Activate the `RouteInjection\Providers]RouteInjectionServiceProvider` by either adding it to your `app.php` config, or making sure your `composer.json` file includes the `@php artisan package:discover --ansi` script.
2. Create a class designed to parse an incoming `Request` and produce a concrete object that will be injected into the controller. To do this, simply extend the `RouteInjection\Binder` class.
3. Reference your custom `Binder` class name in the `route-injection` config array.
4. Ensure that your routes leverage Laravel's `SubstituteBindings` middleware. This should be automatic in your 'api' and 'web' routes, but any outside of these groups may need to have it explicitly listed among its middleware configs.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~0 days

Total

9

Last Release

1982d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86619ba927c0055375588f0c21d6d0d89be6a74e4a2cb98558062c852ebe5c66?d=identicon)[kmuenkel](/maintainers/kmuenkel)

---

Top Contributors

[![kmuenkel](https://avatars.githubusercontent.com/u/17931045?v=4)](https://github.com/kmuenkel "kmuenkel (5 commits)")

---

Tags

laravelinjectionroute

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/kmuenkel-route-injection/health.svg)

```
[![Health](https://phpackages.com/badges/kmuenkel-route-injection/health.svg)](https://phpackages.com/packages/kmuenkel-route-injection)
```

###  Alternatives

[laravel/cashier

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

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

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M674](/packages/laravel-socialite)[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/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M531](/packages/laravel-passport)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

71510.9M66](/packages/laravel-mcp)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k49.4M479](/packages/laravel-scout)

PHPackages © 2026

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