PHP code example of fgsl / http
1. Go to this page and download the library: Download fgsl/http 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/ */
fgsl / http example snippets
composer
use Fgsl\Http\Http;
$ctx = Http::getContext('GET', null);
@$response = Http::request("http://www.horalegalbrasil.mct.on.br/SincronismoPublico.html", $ctx);
$this->assertStringContainsString('Sincronismo', $response);
bash
phpunit --bootstrap tests/bootstrap.php tests/Fgsl/Test/TestSuite.php