PHP code example of madewithlove / jenga

1. Go to this page and download the library: Download madewithlove/jenga 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/ */

    

madewithlove / jenga example snippets


$middleware = [
    new RobotsMiddleware(),
    RouterMiddleware::class,
];

$stack = new Stack($psrContainer, $middlewares);

$psrResponse = $stack->call($psrServerRequest);

$psrResponse = $stack->process($psrServerRequest, $delegate);
bash
php -S 0.0.0.0:8000 example/index.php