PHP code example of anourvalar / http-client
1. Go to this page and download the library: Download anourvalar/http-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/ */
anourvalar / http-client example snippets
$http = new \AnourValar\HttpClient\Http;
$http->asJsonClient()->authToken('...')->body(['foo' => 'bar'])->post('https://google')->dump();
$http = new \AnourValar\HttpClient\Http;
$http->asBrowser()->referer('https://google.com')->get('https://google.com/?start=10')->dump();