PHP code example of mnlnk / curl-wrapper

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

    

mnlnk / curl-wrapper example snippets


use Manuylenko\CurlWrapper\Curl;

$curl = new Curl('https://google.com');

$curl->setOptions([
    CURLOPT_RETURNTRANSFER => true
]);

$response = $curl->exec();

echo $response;