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.
Installing with composer
For install the framework open terminal or cmd in your machine and type as in example (mysite is a example)
Note: The run serve command is intended for development environments only. For production environments, use nginx, Apache, IIS, or lighttpd.
More details: Web Servers
composer create-project inphinit/inphinit:2.1-beta.2 mysite
cd mysite
Creating routings
Open main.php located in the ./system folder, for create Routes, Scope routes and Resource routes see:
<?php
$app>action('ANY', '/', function () {
return 'Hello, World!';
});
$app>action('GET', '/user/<user:alnum>',
function ($app, $params) {
return 'Hello, ' . $params['user'];
});