PHP code example of iggi / curlrequest

1. Go to this page and download the library: Download iggi/curlrequest 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/ */

    

iggi / curlrequest example snippets




use Iggi\CurlRequest;

$curlRequest = new CurlRequest();
$response = $curlRequest->get("https://ignatisd.gr/hello")->exec();
print_r($response->toArray());
/*
array(
    "activeCookies" => string[][],
    "cookies" => string[][],
    "code" => number,
    "headers" => string[],
    "error" => string,
    "timing" => string,
    "body" => string
)
*/