Inphinit PHP framework

The fast and "sustainable" micro-framework

Infinite possibilities to use with other packages in an easy and simple way and still achieve a good performance

Getting started API documentation

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)

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:

main.php
<?php $app>action('ANY', '/', function () { return 'Hello, World!'; }); $app>action('GET', '/user/<user:alnum>', function ($app, $params) { return 'Hello, ' . $params['user']; });