1. Go to this page and download the library: Download xdire/dude-pmvc library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
namespace App\Controller;
use Xdire\Dude\Core\Face\RoutingController;
use Xdire\Dude\Server\Request;
use Xdire\Dude\Server\Response;
class ExampleController implements RoutingController
{
public function acceptRoute(Request $request, Response $response)
{
$response->send(200,"<h2>Hey Dude!</h2>Route was accepted");
}
}