Hubert
Hubert is a PHP micro framework that's fast, easy to use and easy to extend.
For more information on how to configure your web server, see the Documentation.
Installation
Hubert is available via Composer:
{
"require": {
"falkm/hubert": "1.*"
}
}
Usage
Create an index.php file with the following contents:
<?php
require 'vendor/autoload.php';
$config = array(
"routes" => array(
"home" => array(
"route" => "/",
"target" => function($request, $response, $args){
echo "Hello World";
}
)
)
);
hubert($config);
hubert()->core()->run();
components
- PSR-7 implementation: zendframework/zend-diactoros
- container-dependencies: pimple/pimple
- router: [altorouter/altorouter] (https://github.com/dannyvankooten/AltoRouter)
License
The MIT License (MIT). Please see License File for more information.