php-application is a very simple micro-framework designed for the study.
<?php
require_once __DIR__.'/../vendor/autoload.php';
$app = new Application();
$app->get('/hello/(name:str)', function ($name) use ($app) {
return 'Hello '.$app->escape($name);
});
$app->run();
php-application works with PHP 5.4 or later.
The recommended way to install php-application is through Composer:
php composer.phar require itlessons/php-application "*"
Alternatively, you can download the php-application.zip file and extract it.
Read the documentation for more information.