PHP code example of jackal / video-downloader
1. Go to this page and download the library: Download jackal/video-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/ */
jackal / video-downloader example snippets
$myVideoIdOrReference = '123456';
$vd = new \Jackal\Downloader\VideoDownloader();
$vd->registerDownloader(MyDownloader::class);
$downloader = $vd->getDownloaderByPublicUrl('http://www.sample-site.com/video/1234/', [
//[...additional custom options...]
]);
$downloader->download(__DIR__ . '/output.avi');