Skip to content

ruiborda/Light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Light

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/