PHPackages                             wolfpack-it/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. [Templating &amp; Views](/categories/templating)
4. /
5. wolfpack-it/yii2-youtube

ActiveLibrary[Templating &amp; Views](/categories/templating)

wolfpack-it/yii2-youtube
========================

Yii2 Widget for YouTube

v1.0.0(6y ago)0151MITPHPPHP &gt;=7.1.0

Since Sep 27Pushed 6y ago4 watchersCompare

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

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

YouTube widget for Yii2
=======================

[](#youtube-widget-for-yii2)

This extension provides a widget to show a YouTube player for Yii2 Framework.

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

[](#installation)

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

Either run

```
$ composer require wolfpack-it/yii2-youtube
```

or add

```
"wolfpack-it/yii2-youtube": "^"

```

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

Usage
-----

[](#usage)

```
echo \WolfpackIT\youtube\widgets\YouTube::widget([
    'id' => 'yt-video-player',
    'videoId' => '',
    'enableJsApi' => true,
    'jsEvents' => [
        'onStateChange' => new JsExpression('onStateChange'),
    ],
]);
```

Full width or responseive video
-------------------------------

[](#full-width-or-responseive-video)

If you want to have the video to be full width or responsive, check out the following link: .

Credits
-------

[](#credits)

- [Joey Claessen](https://github.com/joester89)
- [Wolfpack IT](https://github.com/wolfpack-it)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](https://github.com/wolfpack-it/yii2-youtube/blob/master/LICENSE) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

2469d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/609e8d7caaa1dacc8b03bcc8347b5732e5a91399bb843e5b44fec66be256f35a?d=identicon)[pascalvgemert](/maintainers/pascalvgemert)

![](https://www.gravatar.com/avatar/88359ebe0456645a614e563dfbf0dd025b69ef57221050cb9eb31e3eef4dd0f9?d=identicon)[joester89](/maintainers/joester89)

![](https://www.gravatar.com/avatar/50236d89a220d6eda49f2a6c5a66779f084660c2596ef2c40225b89c4f276efb?d=identicon)[Kavantix](/maintainers/Kavantix)

---

Top Contributors

[![joester89](https://avatars.githubusercontent.com/u/9624366?v=4)](https://github.com/joester89 "joester89 (3 commits)")

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[bubasuma/yii2-simplechat

A simple chat for your yii2 application

889.6k](/packages/bubasuma-yii2-simplechat)[zxbodya/yii2-tinymce

Yii2 extension to use TinyMce with Compressor and FileManager

1732.4k3](/packages/zxbodya-yii2-tinymce)

PHPackages © 2026

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