PHP code example of gipfl / curl

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

    

gipfl / curl example snippets




use gipfl\Curl\CurlAsync;

$loop = \React\EventLoop\Factory::create();
$curl = new CurlAsync($loop);
$curl->get('https://www.nytimes.com');
$loop->run();