PHP code example of masnun / phptube
1. Go to this page and download the library: Download masnun/phptube 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/ */
masnun / phptube example snippets
$tube = new PhpTube();
$videos = $tube->getDownloadLink('http://www.youtube.com/watch?v=Q-0p7ogC51k');
var_dump($videos);