arrilot / slim-api-controller
Simple base api controller for slimframework.com
Installs: 2 266
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: >=5.5.9
- slim/slim: >=3.0.0 <=3.12.2
This package is auto-updated.
Last update: 2023-01-11 19:33:51 UTC
README
Simple base api controller for slimframework.com
Installation
-
composer require arrilot/slim-api-controller
-
Register the strategy and a logger into service container.
$container = $app->getContainer(); $container['foundHandler'] = function () { return new \Arrilot\SlimApiController\OnlyArgsStrategy(); }; $container['logger'] = function () { // return ... };