PHP code example of mehrdad-dadkhah / stream-to-download
1. Go to this page and download the library: Download mehrdad-dadkhah/stream-to-download 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/ */
mehrdad-dadkhah / stream-to-download example snippets
use MehrdadDadkhah\Video\StreamToDownload;
$streamToDownload = new StreamToDownload();
$streamToDownload->downloadFile('path-or-url-to-file.mp4', 'output-file-name.mp4');