ruiborda/light

Web Framework

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

This package is auto-updated.

Last update: 2024-10-22 03:55:40 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/