dev-master
9999999-devThe Mabs micro framework
MIT
The Requires
- php >=5.3.9
- symfony/http-foundation ~2.0
The Development Requires
by Mohamed Aymen Ben Slimane
framework php microframework moon mabs
Wallogit.com
2017 © Pedro Peláez
The Mabs micro framework
Mabs is a PHP micro framework, speedy, light and easy to learn ., (*2)
You may install the Mabs Framework with Composer (recommended)., (*3)
$ composer require mabslabs/mabs
// web/index.php
<?php
require_once __DIR__.'/../vendor/autoload.php';
$app = new Mabs\Application();
$app->get('hello/(name)', function ($name) {
return 'Hello '.$name;
})->run();
// web/index.php
<?php
require_once __DIR__.'/../vendor/autoload.php';
use \Symfony\Component\HttpFoundation\RedirectResponse;
$app = new Mabs\Application();
$container = $app->getContainer();
$app->get('/', function () use ($container) {
$url = $container['router']->generateUrl('hello_page', array('name' => 'World'));
return new RedirectResponse($url);
});
$app->get('hello/(name)', function ($name) {
return 'Hello '.$name;
}, 'hello_page');
$app->run();
This bundle is available under the MIT license., (*4)
The Mabs micro framework
MIT
framework php microframework moon mabs