Yii 2.0 VideoJs
Yii2 Extension for Generating Video Embed Codes from Video URLs . Such as Youtube etc., (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist prawee/yii2-videojs-widgets "*"
or add, (*4)
"prawee/yii2-videojs-widgets": "*"
to the require section of your composer.json
file., (*5)
Usage
Once the extension is installed, simply use it in your code by :, (*6)
php
<?= \prawee\videojs\VideoJS::widget(); ?>
, (*7)