Skip to content

Widget to Embed video youtube for Yii2 [En francais : Widget yii2 pour insérer vidéo youtube]

Notifications You must be signed in to change notification settings

mourahi/yii2-youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yii2-youtube

Widget to Embed video youtube for Yii2

Installation :

  1. in your path, create new folder "components" if not existe .

  2. copy the file "YoutubeWidget.php" and the folder "views" in your "components" folder.

  3. in your views file, like "About.php" or what you want past this code :

     <?php  use app\components\YoutubeWidget; ?>
     <?= YoutubeWidget::widget([
         "code"=>"65J8okZMfR8",
         "w"=>"400px",
         "h"=>"500px",
         ]) ?>
    

You can change :

code; // exemple if your url is [https://www.youtube.com/watch?v=wLiBcpMWXRU] then your code is [wLiBcpMWXRU] .
h; // height default=250px .
w ; // width default=300px .

that's all.

About

Widget to Embed video youtube for Yii2 [En francais : Widget yii2 pour insérer vidéo youtube]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages