Download the PHP package symkit/routing-bundle without Composer
On this page you can find all versions of the php package symkit/routing-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download symkit/routing-bundle
More information about symkit/routing-bundle
Files in symkit/routing-bundle
Package routing-bundle
Short Description Dynamic database-driven routing bundle
License MIT
Informations about the package routing-bundle
SymkitRoutingBundle
Dynamic database-driven routing for Symfony. Manage routes in the database with native performance via Symfony's routing cache.
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 viasymkit_routing.sitemap.enabledif not needed)symkit/search-bundle(global search; disable viasymkit_routing.search.enabledif not needed)
Installation
Register the bundle in config/bundles.php:
Configuration
Example with all options (config/packages/symkit_routing.yaml):
Loading database routes
In config/routes.yaml (or your main routes file):
Admin routes
If admin.enabled is true, mount the bundle's admin routes with the configured prefix:
Route names: admin_routes_list, admin_routes_edit.
Overriding the entity
- Create an entity implementing
Symkit\RoutingBundle\Contract\RouteEntityInterface(or extendSymkit\RoutingBundle\Entity\Route). - Map it with Doctrine (annotations/attributes or XML).
- Set
entity_classin config to your FQCN.
Your entity can add relations (e.g. a linked Page) and implement getLinkedPage() / getLinkedPageLabel() for sitemap and search behaviour.
Validation
The default entity uses:
ValidRouteSyntax: validates path and options (Symfony route pattern).UniqueEntity: uniquenameandpath.
Messages use the SymkitRoutingBundle translation domain (see translations/). For UniqueEntity, configure your validation mapping to use that domain if needed.
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: when
sitemap.enabledis true, active routes (without parameters, GET allowed, not excluded) are exposed viaSymkitSitemapBundle(loader indexdatabase). - Search: when
search.enabledis true, routes are searchable in the global search (SymkitSearchBundle).
Contributing
- Run the quality pipeline:
make quality(cs-check, phpstan, deptrac, tests, infection). - Full CI:
make ci(adds security-check).
License
MIT.
All versions of routing-bundle with dependencies
doctrine/doctrine-bundle Version ^2.0 || ^3.0
symfony/framework-bundle Version ^7.0 || ^8.0
symkit/crud-bundle Version ~0.0.1
symkit/form-bundle Version ~0.0.1
symkit/metadata-bundle Version ~0.0.1
symkit/menu-bundle Version ~0.0.1
symkit/search-bundle Version ~0.0.1
symkit/sitemap-bundle Version ~0.0.1