mabslabs / mabs
The Mabs micro framework
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 3
Open Issues: 0
pkg:composer/mabslabs/mabs
Requires
- php: >=7.2.5
- symfony/http-foundation: ~5.4
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2025-10-20 01:42:46 UTC
README
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
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.