Mabs: Micro-framework for Web application development

Recommend this page to a friend!
  Info   View files Documentation   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 255 All time: 7,725 This week: 324Up
Version License PHP version Categories
mabs-micro-framework 1.0.0MIT/X Consortium ...5.3.9PHP 5, Libraries
Description Author

This package is a micro-framework for Web application development.

It provides basic components to build simple Web applications like:

- Basic container
- Session service adapter
- Event dispatcher
- Router based on Symfony HttpFoundation

Picture of Mohamed Aymen Ben Slimane
  Performance   Level  
Name: Mohamed Aymen Ben ... <contact>
Classes: 2 packages by
Country: Tunisia Tunisia
Age: 34
All time rank: 372713 in Tunisia Tunisia
Week rank: 639 Up2 in Tunisia Tunisia Up

Details

Mabs Framework

Scrutinizer Code Quality Code Climate Build Status

Mabs is a PHP micro framework, speedy, light and easy to learn .

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).

$ composer require  mabslabs/mabs @dev

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.

  Files folder image Files  
File Role Description
Files folder imagesrc (4 files, 4 directories)
Files folder imagetests (1 file)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageAdapter (1 file)
Files folder imageContainer (1 file)
Files folder imageDispatcher (1 file)
Files folder imageRouter (2 files)
  Plain text file Application.php Class Class source
  Accessible without login Plain text file autoload.php Aux. Class source
  Plain text file Events.php Class Class source
  Plain text file ServiceAdapterInterface.php Class Class source

  Files folder image Files  /  src  /  Adapter  
File Role Description
  Plain text file SessionServiceAdapter.php Class Class source

  Files folder image Files  /  src  /  Container  
File Role Description
  Plain text file Container.php Class Class source

  Files folder image Files  /  src  /  Dispatcher  
File Role Description
  Plain text file EventDispatcher.php Class Class source

  Files folder image Files  /  src  /  Router  
File Role Description
  Plain text file Route.php Class Class source
  Plain text file Router.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file ApplicationTest.php Test Unit test script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:255
This week:0
All time:7,725
This week:324Up

For more information send a message to info at phpclasses dot org.