git clone https://github.com/Pijushgupta/php-router.git
include_once 'Location of file';
composer require pijush_gupta/php-router:dev-main
use phpRouter\Router;
new Router('/', function () {
echo 'Home';
});
https://example.com?a=Pijush&b=Gupta
new Router('/',function($a,$b){ //exact number of variables and name as query vars from url.
echo $a . $b;
})
https://example.com/
new Router('/',function($post){ //variable name for the param can be anything
var_dump($post);
});