2017 © Pedro Peláez
 

library silext

Extensions for the silex framework

image

vonalbert/silext

Extensions for the silex framework

  • Sunday, November 22, 2015
  • by albertoavon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

SilEXT

SilEXT is an extension library for the silex microframework., (*1)

Installation

Just add vonalbert/silext to your composer.json and register the required service providers, (*2)

Features

Modularity

To enable the modules feature you only need to register the Vonalbert\Silext\Provider\ModularityServiceProvider service provider and use the modules service to register the modules objects, (*3)

$app->register(new \Vonalbert\Silext\Provider\ModulesServiceProvider);
$app['modules']->add(new ModuleA);
$app['modules']->addModules([
    new ModuleB('/route-prefix-b'),
    new ModuleB('/route-prefix-c'),
    // ...
]);

A class to recognized as module must extend the Vonalbert\Silext\Module abstract class that require the implementation of the abstract methods setRoutes and bootstrap, (*4)

abstract protected function setRoutes(ControllerCollection $router);
abstract protected function bootstrap(Application $app);

setRoutes is called at registration time and accept a Silex\ControllerCollection that allows routes registration., (*5)

bootstrap is called at the module bootstrapping. A module is bootstrapped only if one of its routes is matching the current request., (*6)

The Versions

22/11 2015

dev-testing

dev-testing

Extensions for the silex framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alberto Avon

silex module microframework controller

20/11 2015

dev-master

9999999-dev

Extensions for the silex framework

  Sources   Download

MIT

The Requires

 

by Alberto Avon

silex module microframework controller