PHP code example of herloct / codeception-slim-module
1. Go to this page and download the library: Download herloct/codeception-slim-module 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/ */
herloct / codeception-slim-module example snippets
use Psr\Container\ContainerInterface;
use Slim\App;
use Slim\Container;
$container = new Container([
App::class => function (ContainerInterface $c) {
$app = new App($c);
// routes and middlewares here
return $app;
}
]);
return $container;