bakangoa / ngbin-framework
Ngbin framework is a pretty simple PHP micro framework developed by our engineers to introduce a new way to handle and process http request
Installs: 85
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/bakangoa/ngbin-framework
Requires
- php: >=7.2.0
README
Ngbin framework is a PHP micro framework developed to introduce a new way to handle and process http request
How to install ?
Just run the command "composer require bakangoa/ngbin-framework".
How to use ?
Create in your code an instance of "Ngbin\Framework\App". Add to this instance some worker, routes and call method run to start your app.
Example
A service which return "Hello world" when his route "GET /" is called
$app = new App(); $app->get("/", function (Request $req) { return new Response("Hello world"); }); $app->run();
Official documentation at https://bakangoa.github.io/ngbin-framework/