PHP code example of ml / fgc-client
1. Go to this page and download the library: Download ml/fgc-client 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/ */
ml / fgc-client example snippets
use Http\Message\MessageFactory\GuzzleMessageFactory;
use Http\Message\StreamFactory\GuzzleStreamFactory;
use ML\FgcClient\FgcHttpClient;
$messageFactory = new GuzzleMessageFactory();
$client = new FgcHttpClient($messageFactory, new GuzzleStreamFactory());
$request = $messageFactory->createRequest('GET', 'http://example.com/');
$response = $client->sendRequest($request);
echo $response->getStatusCode();