2017 © Pedro Peláez
 

yii2-extension yii2-youtube

Yii2 youtube extension

image

tuyakhov/yii2-youtube

Yii2 youtube extension

  • Thursday, July 23, 2015
  • by tuyakhov
  • Repository
  • 1 Watchers
  • 6 Stars
  • 1,579 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 30 % Grown

The README.md

Yii2 youtube extension

Yii2 youtube extension, (*1)

Scrutinizer Code Quality Build Status Code Climate, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist tuyakhov/yii2-youtube "*"

or add, (*5)

"tuyakhov/yii2-youtube": "*"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply use it in your code by :, (*7)

Widget, (*8)

    \tuyakhov\youtube\EmbedWidget::widget([
        'code' => 'vs5ZF9fRDzA',
        'playerParameters' => [
            'controls' => 2
        ],
        'iframeOptions' => [
            'width' => '600',
            'height' => '450'
        ]
    ]);

Validator, (*9)

    public function rules()
    {
        return [
            ['youtube_code', CodeValidator::className()],
        ];
    }

The Versions

23/07 2015

dev-master

9999999-dev

Yii2 youtube extension

  Sources   Download

MIT

The Requires

 

by Anton Tuyakhov

extension yii2

01/04 2015

v1.0.0

1.0.0.0

Yii2 youtube extension

  Sources   Download

MIT

The Requires

 

by Anton Tuyakhov

extension yii2