# cnSilexBlueprint Basic application blueprint for silex based services ## Installation Install the library by adding the repository to your composer.json ``` "repositories": { "cnd-silexblueprint": { "type": "vcs", "no-api": true, "url": "git@github.com:CondeNastDigital/cnSilexBlueprint.git" } } ``` Then add the requirement either with `composer require cnd/silex-blueprint` or by adding it to the composer.json require list ``` "require": { "cnd/silex-blueprint": "^1.0" } ``` ## Usage Create your own Application.php and extend the Blueprint's Application: ``` register(new MyProvider()); } /** * Optionally register additional controlers */ public function initControllers(){ parent::initControllers(); $this->mount("/", new MyController()); } } ``` ## Features Already included in the base application is the following: - **System** Adds the /system/info route with extensible basic debugging info - **Context** Adds a "context" service with info about the request - **Logger** Adds basic logging to file and FirePHP - **Session** Basic session wrapper from symfony - **Config** Topolis configuration service Optional additional Providers / Components - **MongoDB** A basic mongodb service