PHPackages                             tuyakhov/yii2-youtube - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tuyakhov/yii2-youtube

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

tuyakhov/yii2-youtube
=====================

Yii2 youtube extension

v1.0.0(11y ago)117.8k3MITPHP

Since Apr 1Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tuyakhov/yii2-youtube)[ Packagist](https://packagist.org/packages/tuyakhov/yii2-youtube)[ RSS](/packages/tuyakhov-yii2-youtube/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Yii2 youtube extension
======================

[](#yii2-youtube-extension)

Yii2 youtube extension

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9060755e9ece89d5d4b1078cc01426bfb198bdfe1d21cd1a120d75faf0349224/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f747579616b686f762f796969322d796f75747562652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tuyakhov/yii2-youtube/?branch=master) [![Build Status](https://camo.githubusercontent.com/33087557e13c4d34e352ba0a1f91f6d56b5e8618bf77a57df41d394d7d7c9278/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f747579616b686f762f796969322d796f75747562652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tuyakhov/yii2-youtube/build-status/master) [![Code Climate](https://camo.githubusercontent.com/4b66b18022849972dc6b09a2eb30ecfe1acea9d39a7767db3aeb444bdb3ff28c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f747579616b686f762f796969322d796f75747562652f6261646765732f6770612e737667)](https://codeclimate.com/github/tuyakhov/yii2-youtube)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

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

```

or add

```
"tuyakhov/yii2-youtube": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

Widget

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

Validator

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

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4112d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/217d79b2ef3dda6048f6368e331106b1d6321be4af345642f6f6b66bf8c7161b?d=identicon)[tuyakhov](/maintainers/tuyakhov)

---

Top Contributors

[![tuyakhov](https://avatars.githubusercontent.com/u/7713205?v=4)](https://github.com/tuyakhov "tuyakhov (9 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/tuyakhov-yii2-youtube/health.svg)

```
[![Health](https://phpackages.com/badges/tuyakhov-yii2-youtube/health.svg)](https://phpackages.com/packages/tuyakhov-yii2-youtube)
```

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7760.4k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1455.6k](/packages/dmstr-yii2-cookie-consent)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

2111.7k](/packages/imanilchaudhari-yii2-currency-converter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1359.3k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
