Basic PSR-4 autoload for PHP with basic controller examples.
Just a simple ready-to-use APP with autoload included so you can avoid the initial setup. It will help you understand the use of namespaces in PHP.
Two simple controllers in the /src folder (namespace entry point), one in the root folder and another one in a subfolder.
index.php in order to require the autoload.
Main controller method execution. It makes a call to the subfolder method.
composer install
Just use it with your favorite server.