1. Go to this page and download the library: Download emerge/php-routing 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/ */
emerge / php-routing example snippets
use Emerge\Routing;
$routing = new Routing();
$routing->get(
'/admin',
['App\Admin', 'index']
);
$routing->get(
'/admin/user/$id',
['App\Admin', 'index'],
[
'