Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 257 | All time: 7,839 This week: 455 |
Version | License | PHP version | Categories | |||
mabs-micro-framework 1.0.0 | MIT/X Consortium ... | 5.3.9 | PHP 5, Libraries |
Description | Author | ||||||||
This package is a micro-framework for Web application development. |
|
Mabs is a PHP micro framework, speedy, light and easy to learn .
You may install the Mabs Framework with Composer (recommended).
$ composer require mabslabs/mabs @dev
// 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.
Files (15) |
File | Role | Description | ||
---|---|---|---|---|
src (4 files, 4 directories) | ||||
tests (1 file) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | Auxiliary data | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Auxiliary data |
Files (15) | / | src |
File | Role | Description | ||
---|---|---|---|---|
Adapter (1 file) | ||||
Container (1 file) | ||||
Dispatcher (1 file) | ||||
Router (2 files) | ||||
Application.php | Class | Class source | ||
autoload.php | Aux. | Class source | ||
Events.php | Class | Class source | ||
ServiceAdapterInterface.php | Class | Class source |
Files (15) | / | src | / | Router |
File | Role | Description |
---|---|---|
Route.php | Class | Class source |
Router.php | Class | Class source |
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 |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.