PHP code example of nhymxu / php-floc-disable
1. Go to this page and download the library: Download nhymxu/php-floc-disable 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/ */
nhymxu / php-floc-disable example snippets
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Nhymxu\FlocDisable\FlocDisableMiddleware;
use Slim\Factory\AppFactory;
are(true, true, true);
// Define app routes
$app->get('/', function (Request $request, Response $response) {
$response->getBody()->write('Hello, World!');
return $response;
})->setName('root');
// Run app
$app->run();
shell
composer