PHP code example of wtf / html

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

    

wtf / html example snippets


composer 



declare(strict_types=1);

$cache_dir = __DIR__.'/../cache';

return [
    'template_path' => __DIR__.'/../views/',
    'cache_path' => __DIR__.'/../cache',
];



declare(strict_types=1);

return [
    'failure_callable' => function ($request, $response, $next) { //@link https://github.com/slimphp/Slim-Csrf#handling-validation-failure
        $request = $request->withAttribute("csrf_status", false);
        return $next($request, $response);
    }
];