1. Go to this page and download the library: Download navarr/youtube 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/ */
navarr / youtube example snippets
use Navarr\YouTube\AudioPlayer;
AudioPlayer::create('http://www.youtube.com/watch?v=dvgZkm1xWPE&ob=av2n')
->size(AudioPlayer::SIZE_LARGE)
->theme(AudioPlayer::THEME_DARK)
->hd() // Force HD
->loop() // Loop
->progressBar() // Show Progress Bar
->timeCode() // Show Time Code
->autoplay() // Autoplay
->render(); // Output XHTML