jhonatanjavierdev/ariarouter

There is no license information available for the latest version (v1.1.0) of this package.

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

v1.1.0 2023-12-07 21:12 UTC

This package is auto-updated.

Last update: 2025-10-08 02:15:35 UTC


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();