PHP code example of ilis / yii2-lazy-youtube
1. Go to this page and download the library: Download ilis/yii2-lazy-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/ */
ilis / yii2-lazy-youtube example snippets
<?= \ilis\lazyyt\LazyYT::widget([
'url' => 'https://www.youtube.com/watch?v=S5S9LIT-hdc'
]);
<?= \ilis\lazyyt\LazyYT::widget([
'url' => 'https://youtu.be/S5S9LIT-hdc'
]);