no-framework-tutorial/5-router.md

13 lines
657 B
Markdown
Raw Normal View History

2014-09-12 22:15:04 +00:00
[<< previous](4-http.md)
### Router
2014-09-13 08:08:21 +00:00
With your current setup it does not matter what URL is used to access the application, it will always result in the same response. So let's fix that now.
I will use [FastRoute](https://github.com/nikic/FastRoute) in this tutorial. But as always, you can pick your own favorite package.
Alternative packages: [symfony/Routing](https://github.com/symfony/Routing), [Aura.Router](https://github.com/auraphp/Aura.Router), [fuelphp/routing](https://github.com/fuelphp/routing), [Klein](https://github.com/chriso/klein.php)
By now you know how to install composer packages, so I will leave that to you.
2014-09-12 22:15:04 +00:00
to be continued...