jhonatanjavierdev / ariarouter
A lightweight PHP router library
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jhonatanjavierdev/ariarouter
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();