PHP code example of itsvijaykr / theofficialvkr-library

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

    

itsvijaykr / theofficialvkr-library example snippets


use Theofficialvkr\Library\Downloader;

al/bin/youtube-dl');
$video = $downloader->getVideo('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
$video->getUrl();