PHP code example of milan-miscevic / inert
1. Go to this page and download the library: Download milan-miscevic/inert 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/ */
milan-miscevic / inert example snippets
use Mmm\Inert\ActionContainer;
use Mmm\Inert\Application;
use Mmm\Inert\ServiceContainer;
$actions,
new ServiceContainer([])
);
echo (new Application($actionContainer))->run()->getContent();
use Mmm\Inert\Action;
use Mmm\Inert\Response;
class IndexAction implements Action
{
public function run(): Response
{
return new Response('Hello, world!');
}
}