jhonatanjavierdev / ariarouter
There is no license information available for the latest version (v1.1.0) of this package.
A lightweight PHP router library
v1.1.0
2023-12-07 21:12 UTC
Requires
- php: >=5.1.0
README
AriaRouter is a powerful and simple PHP router, ideal for small-scale projects. Its glorious simplicity makes it easy to use and integrate into your projects.
Examples
<?php Router::get('/', function () { echo 'Hello, World!'; }); Router::get('/user/{id}', function ($id) { echo 'User ID: ' . $id; }); Router::post('/submit-form', function () { // Logic to handle form submissions }); Router::any('/fallback', 'fallback_page.php'); Router::run();