arrilot/slim-api-controller

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple base api controller for slimframework.com

0.2.1 2019-12-11 13:01 UTC

This package is auto-updated.

Last update: 2023-01-11 19:33:51 UTC


README

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 ...
};