PHPackages                             wshafer/mezzio-symfony-router - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. wshafer/mezzio-symfony-router

ActiveLibrary[HTTP &amp; Networking](/categories/http)

wshafer/mezzio-symfony-router
=============================

1.0.0(6y ago)281[1 issues](https://github.com/wshafer/mezzio-symfony-router/issues)BSD-3-ClausePHPPHP ^7.3CI failing

Since Mar 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wshafer/mezzio-symfony-router)[ Packagist](https://packagist.org/packages/wshafer/mezzio-symfony-router)[ RSS](/packages/wshafer-mezzio-symfony-router/feed)WikiDiscussions master Synced yesterday

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

Symfony Route Integration for Mezzio
====================================

[](#symfony-route-integration-for-mezzio)

[![Build Status](https://camo.githubusercontent.com/bd45fcc8b9c7d4bdf9fd72d1d43da311cc97796a230de30fb63073a29fae7244/68747470733a2f2f7472617669732d63692e6f72672f777368616665722f6d657a7a696f2d73796d666f6e792d726f757465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wshafer/mezzio-symfony-router)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8c649331016ed5a14e7541d6c48a340fac51a2ae3ac66a668e956266d6485c55/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f777368616665722f6d657a7a696f2d73796d666f6e792d726f757465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wshafer/mezzio-symfony-router/?branch=master)[![codecov](https://camo.githubusercontent.com/a4ee1f8a62cedd02dc0a7ff95e67929750ea5c424df06c73fb0ad08978cc34e7/68747470733a2f2f636f6465636f762e696f2f67682f777368616665722f6d657a7a696f2d73796d666f6e792d726f757465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/wshafer/mezzio-symfony-router)

Provides [Symfony Route](https://symfony.com/doc/current/routing.html) integration for [Mezzio](https://github.com/mezzio/mezzio).

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

[](#installation)

Install this library using composer:

```
$ composer require wshafer/mezzio-symfony-router
```

Documentation
-------------

[](#documentation)

### Configuration

[](#configuration)

To enable this router using the Mezzio Skeleton, make sure that `WShafer\Mezzio\Symfony\Router\ConfigProvider::class` was added to your `ConfigAggregator`located in `config/config.php`. In addition you'll want to remove your current router's config provider that was installed during setup.

### Routing

[](#routing)

$app-&gt;route('/book/{id}', YourRequestHandler::class)

### Caching

[](#caching)

To enable caching you need to add the following config:

```
return [
    'router' => [
        'symfony' => [
            'cache_enabled' => true,
            'cache_file'    => /my/cache/dir/cache_file.txt
        ],
    ],
];
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2295d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1828455?v=4)[Westin Shafer](/maintainers/wshafer)[@wshafer](https://github.com/wshafer)

---

Top Contributors

[![wshafer](https://avatars.githubusercontent.com/u/1828455?v=4)](https://github.com/wshafer "wshafer (14 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wshafer-mezzio-symfony-router/health.svg)

```
[![Health](https://phpackages.com/badges/wshafer-mezzio-symfony-router/health.svg)](https://phpackages.com/packages/wshafer-mezzio-symfony-router)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.4k67.4M264](/packages/nelmio-api-doc-bundle)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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