PHP code example of nichin79 / curl-php

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

    

nichin79 / curl-php example snippets


$data = [
  'curlopt_url' => 'https://reqbin.com/echo',
  'curlopt_ssl_verifypeer' => false,
];

$curl = new Curl($data);

// execute the initiated curl and return the response
$curl->exec();

echo "\r\n";
echo "http status code: " . $curl->httpcode;