657 B
657 B
Router
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 in this tutorial. But as always, you can pick your own favorite package.
Alternative packages: symfony/Routing, Aura.Router, fuelphp/routing, Klein
By now you know how to install composer packages, so I will leave that to you.
to be continued...