PHP code example of aportela / httprequest-wrapper
1. Go to this page and download the library: Download aportela/httprequest-wrapper 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/ */
aportela / httprequest-wrapper example snippets
er = new \Psr\Log\NullLogger("");
$http = new \aportela\HTTPRequestWrapper\HTTPRequest($logger, "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1");
$response = $http->GET("https://packagist.org/packages/aportela/httprequest-wrapper");
print_r($response);