PHPackages                             wshafer/expressive-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. [API Development](/categories/api)
4. /
5. wshafer/expressive-symfony-router

Abandoned → [wshafer/mezzio-symfony-router](/?search=wshafer%2Fmezzio-symfony-router)Library[API Development](/categories/api)

wshafer/expressive-symfony-router
=================================

3112PHPCI failing

Since Mar 23Pushed 6y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Symfony Route Integration for Expressive
========================================

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

[![Build Status](https://camo.githubusercontent.com/bbe9aff9b795bd1d4ab1536381dd5ad703714d637d229ee733ee98eb19e578d9/68747470733a2f2f7472617669732d63692e6f72672f777368616665722f657870726573736976652d73796d666f6e792d726f757465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wshafer/expressive-symfony-router)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3a36f8ffaeb38f7501944baf9dd5527e6a8889089cd87490362b26c5e0e171eb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f777368616665722f657870726573736976652d73796d666f6e792d726f757465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wshafer/expressive-symfony-router/?branch=master)[![codecov](https://camo.githubusercontent.com/84360538e5dd4cb549007db3cb527e53b74262a5375852a3c2a2fc7f44ed29c9/68747470733a2f2f636f6465636f762e696f2f67682f777368616665722f657870726573736976652d73796d666f6e792d726f757465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/wshafer/expressive-symfony-router)

Provides [Symfony Route](https://symfony.com/doc/current/routing.html) integration for [Expressive](https://github.com/zendframework/zend-expressive).

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

[](#installation)

Install this library using composer:

```
$ composer require symfony/routing:dev-master
$ composer require wshafer/expressive-symfony-router:dev-master
```

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

[](#documentation)

### Configuration

[](#configuration)

To enable this router using the Expressive Skeleton, make sure to add `WShafer\Expressive\Symfony\Router\ConfigProvider::class` 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

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### 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)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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