ruiborda / light
Web Framework
v1.0.0
2021-04-05 18:32 UTC
README
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/