2017 © Pedro Peláez
 

library mabs

The Mabs micro framework

image

mabslabs/mabs

The Mabs micro framework

  • Tuesday, September 8, 2015
  • by kernel64
  • Repository
  • 3 Watchers
  • 6 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Mabs Framework

Code Climate Build Status, (*1)

Mabs is a PHP micro framework, speedy, light and easy to learn ., (*2)

Features

  • Container
  • Event dispatcher
  • Routing
  • HttpFoundation (Symfony2 component)
  • An easy way to extend PHP libraries

Getting Started

Install

You may install the Mabs Framework with Composer (recommended)., (*3)

$ composer require  mabslabs/mabs

Quick start

// web/index.php
<?php

require_once __DIR__.'/../vendor/autoload.php';

$app = new Mabs\Application();

$app->get('hello/(name)', function ($name) {

    return 'Hello '.$name;
})->run();

More details

// 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();

License

This bundle is available under the MIT license., (*4)

The Versions

08/09 2015

dev-master

9999999-dev

The Mabs micro framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mohamed Aymen Ben Slimane

framework php microframework moon mabs