ruiborda/light

Web Framework

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/ruiborda/light

v1.0.0 2021-04-05 18:32 UTC

This package is auto-updated.

Last update: 2025-10-22 06:00:01 UTC


README

Packagist

Web Framework

Installation

composer require ruiborda/light

Example

namespace Any{
    class User{
        public function method_name(int $id,string $name){
            echo 'id: '. $id;
            echo '<br/>';
            echo 'name: '. $name;
        }
    }
}
<?php
require __DIR__ . "/../vendor/autoload.php";

$app = new \Light\Light();

$app->get(
            '/user/:/:',
            [\Any\User::class, 'method_name']
        );
        
$app->start();

Execute Example

php -S localhost:8080 -t example/public/