PHPackages                             weew/router-routes-invoker-container-aware - 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. weew/router-routes-invoker-container-aware

ActiveLibrary

weew/router-routes-invoker-container-aware
==========================================

Container aware routes invoker for the weew/router package.

v1.4.1(9y ago)01091MITPHP

Since Jan 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/weew/router-routes-invoker-container-aware)[ Packagist](https://packagist.org/packages/weew/router-routes-invoker-container-aware)[ RSS](/packages/weew-router-routes-invoker-container-aware/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (8)Used By (1)

Routes invoker
==============

[](#routes-invoker)

[![Build Status](https://camo.githubusercontent.com/486c96530bcc291cc458e9a8b651ac9b8ef8f38a0ce9e58c3446c27acb893774/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776565772f726f757465722d726f757465732d696e766f6b65722d636f6e7461696e65722d61776172652e737667)](https://travis-ci.org/weew/router-routes-invoker-container-aware)[![Code Quality](https://camo.githubusercontent.com/c128191da0c9f7a0c1441fedef97fe8155dee77776470d05b074d1efec6ec91c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f776565772f726f757465722d726f757465732d696e766f6b65722d636f6e7461696e65722d61776172652e737667)](https://scrutinizer-ci.com/g/weew/router-routes-invoker-container-aware)[![Test Coverage](https://camo.githubusercontent.com/76c5db5af86de5abd8c12fd0b79e7f56a8a05ce46c093b4a36efc1d4c657026a/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f776565772f726f757465722d726f757465732d696e766f6b65722d636f6e7461696e65722d61776172652e737667)](https://coveralls.io/github/weew/router-routes-invoker-container-aware)[![Version](https://camo.githubusercontent.com/5e456d9b80d0750ea1df47ce3d453d64934e9ed9de6db8a4406a084e312b7eae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776565772f726f757465722d726f757465732d696e766f6b65722d636f6e7461696e65722d61776172652e737667)](https://packagist.org/packages/weew/router-routes-invoker-container-aware)[![Licence](https://camo.githubusercontent.com/5bc4845a177362f2abe00dbfcd73999af9a1ee6bb18bf6423703af4f73f4aca0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776565772f726f757465722d726f757465732d696e766f6b65722d636f6e7461696e65722d61776172652e737667)](https://packagist.org/packages/weew/router-routes-invoker-container-aware)

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Introduction](#introduction)
- [Usage](#usage)

Installation
------------

[](#installation)

`composer require weew/router-routes-invoker-container-aware`

Introduction
------------

[](#introduction)

This package is meant to be used in combination with [weew/router](https://github.com/weew/router). It's job is to invoke routes that have been successfully matched by the router. It uses the [weew/container](https://github.com/weew/container) package to provide dependency injection.

Usage
-----

[](#usage)

Lets say you have successfully matched a route:

```
$route = $router->match(HttpRequestMethod::GET, new Url('foo-bar'));
```

Now you have to invoke the matched route:

```
$routesInvoker = new RoutesInvoker(new Container());
$response = $routesInvoker->invoke($route);
$response->send();
```

If response object implements either the `IHttpResponseHolder` or `IHttpResponseable` interface, invoker will extract the http response and return it instead.

Router returns `null` whenever a route could not be matched. In this case, `RoutesInvoker` will return a 404 `HttpResponse` object instead.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~46 days

Total

7

Last Release

3583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10b2b854b5829dd13a15967c000ed2119b5faef67aca24d94c653c8ac550d85e?d=identicon)[weew](/maintainers/weew)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/weew-router-routes-invoker-container-aware/health.svg)

```
[![Health](https://phpackages.com/badges/weew-router-routes-invoker-container-aware/health.svg)](https://phpackages.com/packages/weew-router-routes-invoker-container-aware)
```

PHPackages © 2026

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