Framework benchmarks
Results obtained using ApacheBench command: ab -n 1000 -c 10 http://localhost/
, without "Views", using only return 'hello, world';
or echo 'Hello, world!';
in all tested frameworks.
67
Slim
89
Lumen
93
Silex
385
Fatfree
587
Inphinit
Installing with composer
For install the framework open terminal or cmd in your machine and type as in example (mysite
is a example)
More details in: Getting started
composer create-project inphinit/inphinit mysite
cd mysite
Creating routings
Open main.php
located in the ./system
folder, for create Routes, Groups and Rest see wiki:
main.php
<?php
use Inphinit\Routing\Route;
Route::set('ANY', '/', function () {
return 'Hello, World!';
});
Route::set('GET', '/user/{:[\w\-]+:}', function ($name) {
return 'Hello, ' . $name;
});