PHP code example of tkzo / huge-file-streaming-downloader

1. Go to this page and download the library: Download tkzo/huge-file-streaming-downloader 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/ */

    

tkzo / huge-file-streaming-downloader example snippets


$fileUrl  = 'https://example.com/archive.tar.gz';
$savePath = 'path/to/dest/file.tar.gz';

$loader = new \HugeFileStreamingDownloader\Downloader($fileUrl);
$loader->start($savePath);