PHP code example of ahaschool / video-dl
1. Go to this page and download the library: Download ahaschool/video-dl 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/ */
ahaschool / video-dl example snippets
Ahaschool\Videodl\Youtube\Channel;
$chl = new Channel('user/byjusclasses/videos');
$items = $chl->initVideoItems()->getItems();
Ahaschool\Videodl\Youtube\Download;
$dl = new Download('./');
try {
$video = $dl->dl('WPOoNZbT-1w');
} catch (\Exception $e) {
echo $e->getMessage();
}