This is
Hubert

Hubert

Fast, easy and extensible
PHP micro framework


				
<?php
require 'vendor/autoload.php';
$app = new hubert\app();
$config = array(
"routes" => array(
"home" => array(
"route" => "/",
"target" => function($request, $response, $args){
echo "Hello World";
}
)
)
);
hubert($config);
hubert()->core()->run();

Features and Standard components

Configuration

Hubert is configured by a single array. Within this array you can configure system settings, routes and container factories.


Container

Hubert provides a DI container based on pimple. The containers configured in the settings are globally accessible and only initialised on their first use.


Router

Hubert uses Alto Router. The routes are defined in the configuration and can be functions or function references.


PSR-7 implementation

By the use of PSR-7 implementation the request is ready as a container and routes can make use of standard response objects.

Get it now on