PHP code example of venipa / curl-axel

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

    

venipa / curl-axel example snippets


$c = CurlAxel\Factory::create()
    ->setUrl('http://ovh.net/files/1Mio.dat')
    ->setOutput('download.dat');

// Set Additional Curl Options
$c->setCurlOptions([
    CURLOPT_SSL_VERIFYHOST => false // Disabling SSL Check
]);

$c->download();

$c = CurlAxel\Factory::create('Memory')
    ->setUrl('http://ovh.net/files/1Mio.dat')
    ->setOutput'download.dat');

$c->download();

./vendor/bin/phpunit --bootstrap vendor/autoload.php tests