0
I am testing a web application, but I need to implode the use of hoarding and I thought better to work with Respect Rest. I followed all the instructions of use of the class, but I can not print if you want a world on the screen, what is wrong?
index.php file
use Respect\Rest\Router;
chdir( __DIR__ . '/..');
require 'vendor/autoload.php';
$router = new Router();
$router->get('/','Hello World');
I installed the class Respect Rest via Composer, but I’ve been testing for a long time nothing happens.
Here is my Composer.json
{
"autoload": {
"psr-4": {
"App\\": "src/App"
}
},
"require": {
"respect/rest": "^0.6.0"
}
}