PHP code example of romanpitak / php-rest-client
1. Go to this page and download the library: Download romanpitak/php-rest-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/ */
romanpitak / php-rest-client example snippets
$client = new Client('https://raw.githubusercontent.com/romanpitak');
$request = $client->newRequest('/PHP-REST-Client/master/README.md');
$response = $request->getResponse();
echo $response->getParsedResponse();
php composer.phar