Ⲁ(alpha) router is an open source PHP routing library that provides high security routing (Dont worry about XSS || CSRF )
- Download the files
- in the file that you write in the whole routes
require_once __DIR__.'/a_router.php';
- Create object from the class Router
- start using the method to Route evrey thing
- We Have 5 methods :
- get()--> for get requests
- post()-->for post requests
- delete()-->for delete requests
- patch()-->for patch requests
- any()-->for any kind of requests
require_once __DIR__.'/a_router.php';
$router = new Router
;$router->get('/','/views/index') ;
$router = new Router
;$router->get('/User/$name/','/views/mens') ;