PHP Classes

Mabs: Micro-framework for Web application development

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 257 All time: 7,839 This week: 455Up
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: 38
All time rank: 381413 in Tunisia Tunisia
Week rank: 206 Up1 in Tunisia Tunisia Up

Documentation

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 (15)  
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 (15)  /  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 (15)  /  src  /  Adapter  
File Role Description
  Plain text file SessionServiceAdapter.php Class Class source

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

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

  Files folder image Files (15)  /  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 (15)  /  tests  
File Role Description
  Accessible without login Plain text file ApplicationTest.php Test Unit test script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:257
This week:0
All time:7,839
This week:455Up