ilis/yii2-lazy-youtube
Composer 安装命令:
composer require ilis/yii2-lazy-youtube
包简介
Accelerates the pages loadings with youtube videos using lazy load method
README 文档
README
YouTube lazy load. Accelerate page loading with youtube video.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist ilis/yii2-lazy-youtube "*"
or add
"ilis/yii2-lazy-youtube": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \ilis\lazyyt\LazyYT::widget([ 'url' => 'https://www.youtube.com/watch?v=S5S9LIT-hdc' ]); ?>
or by short link to :
<?= \ilis\lazyyt\LazyYT::widget([ 'url' => 'https://youtu.be/S5S9LIT-hdc' ]); ?>
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-11-29