Skip to content
wmateam edited this page Apr 1, 2017 · 2 revisions

Initialize CurlRequest:

use wmateam\curling;

$url = 'https://httpbin.org/get';

$curl = new curling\CurlRequest($url);

Fetch response:

$response = $curl->get();

For example

use wmateam\curling;

$url = 'https://httpbin.org/get';

$curl = new curling\CurlRequest($url);
$response = $curl->get();// $response is instance of CurlResponse  (src/CurlResponse.php)
Clone this wiki locally