arrilot / slim-api-controller

Simple base api controller for slimframework.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest Stable Version Total Downloads Scrutinizer Quality Score

Simple base api controller for slimframework.com

Installation

  1. composer require arrilot/slim-api-controller

  2. Register the strategy and a logger into service container.

$container = $app->getContainer();
$container['foundHandler'] = function () {
    return new \Arrilot\SlimApiController\OnlyArgsStrategy();
};
$container['logger'] = function () {
    // return ...
};

About

Simple base api controller for slimframework.com

License:MIT License


Languages

Language:PHP 100.0%