PHPackages                             symkit/routing-bundle - 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. symkit/routing-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

symkit/routing-bundle
=====================

Dynamic database-driven routing bundle

v0.0.5(2mo ago)0581MITPHPPHP &gt;=8.2CI failing

Since Feb 22Pushed 2mo agoCompare

[ Source](https://github.com/SymKit/routing-bundle)[ Packagist](https://packagist.org/packages/symkit/routing-bundle)[ RSS](/packages/symkit-routing-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (15)Versions (6)Used By (1)

SymkitRoutingBundle
===================

[](#symkitroutingbundle)

[![CI](https://github.com/symkit/routing-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/symkit/routing-bundle/actions)[![Latest Version](https://camo.githubusercontent.com/0cfa9e82eb708e9eeb4edffa4bad342c671e0d50a666690c9a0314f636fb8327/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796d6b69742f726f7574696e672d62756e646c652e737667)](https://packagist.org/packages/symkit/routing-bundle)[![PHPStan Level 9](https://camo.githubusercontent.com/1bc07920f0d36e55c17e1d38b1caa132cc605f51a82b388c962870b9a747b898/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230392d627269676874677265656e2e737667)](https://phpstan.org/)

Dynamic database-driven routing for Symfony. Manage routes in the database with native performance via Symfony's routing cache.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Symfony 7.0+ or 8.0+
- `doctrine/doctrine-bundle` (Doctrine ORM)
- `symkit/crud-bundle` (for admin)
- `symkit/sitemap-bundle` (sitemap; disable via `symkit_routing.sitemap.enabled` if not needed)
- `symkit/search-bundle` (global search; disable via `symkit_routing.search.enabled` if not needed)

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

[](#installation)

```
composer require symkit/routing-bundle
```

Register the bundle in `config/bundles.php`:

```
return [
    // ...
    Symkit\RoutingBundle\RoutingBundle::class => ['all' => true],
];
```

Configuration
-------------

[](#configuration)

Example with all options (`config/packages/symkit_routing.yaml`):

```
symkit_routing:
    enabled: true
    entity_class: Symkit\RoutingBundle\Entity\Route  # Your entity FQCN (must implement RouteEntityInterface)
    admin:
        enabled: true
        path_prefix: /admin/routes
    sitemap:
        enabled: true
    search:
        enabled: true
    listener:
        invalidate_sitemap_on_change: true
```

Loading database routes
-----------------------

[](#loading-database-routes)

In `config/routes.yaml` (or your main routes file):

```
database_routes:
    resource: .
    type: database
```

Admin routes
------------

[](#admin-routes)

If `admin.enabled` is true, mount the bundle's admin routes with the configured prefix:

```
# config/routes.yaml
_symkit_routing_admin:
    resource: '@SymkitRoutingBundle/config/routes.yaml'
    prefix: /admin/routes   # or use %symkit_routing.admin.path_prefix% if you expose it as a parameter
```

Route names: `admin_routes_list`, `admin_routes_edit`.

Overriding the entity
---------------------

[](#overriding-the-entity)

1. Create an entity implementing `Symkit\RoutingBundle\Contract\RouteEntityInterface` (or extend `Symkit\RoutingBundle\Entity\Route`).
2. Map it with Doctrine (annotations/attributes or XML).
3. Set `entity_class` in config to your FQCN.

Your entity can add relations (e.g. a linked Page) and implement `getLinkedPage()` / `getLinkedPageLabel()` for sitemap and search behaviour.

Validation
----------

[](#validation)

The default entity uses:

- `ValidRouteSyntax`: validates path and options (Symfony route pattern).
- `UniqueEntity`: unique `name` and `path`.

Messages use the `SymkitRoutingBundle` translation domain (see `translations/`). For UniqueEntity, configure your validation mapping to use that domain if needed.

Cache
-----

[](#cache)

The bundle registers a `RoutingDatabaseResource` and a resource checker. The routing cache is invalidated only when the set of routes or their last update timestamp changes.

Sitemap and search
------------------

[](#sitemap-and-search)

- **Sitemap**: when `sitemap.enabled` is true, active routes (without parameters, GET allowed, not excluded) are exposed via `SymkitSitemapBundle` (loader index `database`).
- **Search**: when `search.enabled` is true, routes are searchable in the global search (SymkitSearchBundle).

Contributing
------------

[](#contributing)

- Run the quality pipeline: `make quality` (cs-check, phpstan, deptrac, tests, infection).
- Full CI: `make ci` (adds security-check).

License
-------

[](#license)

MIT.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance83

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

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

Total

5

Last Release

85d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/077eba6702dc23a795ee2262dff92505e3c8ead08f7cb205be80d8aae0a6b8e5?d=identicon)[sdieunidou](/maintainers/sdieunidou)

---

Top Contributors

[![sdieunidou](https://avatars.githubusercontent.com/u/570763?v=4)](https://github.com/sdieunidou "sdieunidou (10 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/symkit-routing-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/symkit-routing-bundle/health.svg)](https://phpackages.com/packages/symkit-routing-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[contao/manager-bundle

Provides the Contao Managed Edition

181.3M61](/packages/contao-manager-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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