bulton-fr / bfw-fastroute
Router module for BFW
Installs: 234
Dependents: 0
Suggesters: 1
Security: 0
Stars: 1
Watchers: 2
Forks: 0
pkg:composer/bulton-fr/bfw-fastroute
Requires
- bulton-fr/bfw: ~3.0.0-RC11@RC
- nikic/fast-route: ~v1.3
Requires (Dev)
- atoum/atoum: ~3.1
- atoum/visibility-extension: ~1.3
This package is auto-updated.
Last update: 2025-09-26 04:34:56 UTC
README
Router module for the framework BFW. Use the lib fastRoute
Install :
You can use composer to get the module : composer require bulton-fr/bfw-fastroute @stable
And to install the module : ./vendor/bin/bfwInstallModules
Config :
All config file for this module will be into app/config/bfw-fastroute/
. There is one file to configure (manifest.json is for the module update system).
The file routes.php
routes
: All routes defined. You have an exemple for the format to use. For the key "target", referer you to the controller module used.
Example :
Extract from the BFW wiki, an exemple of the config file to use with the module bfw-controller.
<?php return [ 'routes' => [ '/test' => [ 'target' => ['\Controller\Test', 'index'] ] ] ];