PHP code example of arrilot / slim-api-controller
1. Go to this page and download the library: Download arrilot/slim-api-controller library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
arrilot / slim-api-controller example snippets
$container = $app->getContainer();
$container['foundHandler'] = function () {
return new \Arrilot\SlimApiController\OnlyArgsStrategy();
};
$container['logger'] = function () {
// return ...
};