PHPackages                             sheillendra/yii2-embed-script - 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. sheillendra/yii2-embed-script

ActiveYii2-extension

sheillendra/yii2-embed-script
=============================

Yii2 Embed Script

v1.0.0-alpha(11y ago)017MITPHP

Since Nov 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/sheillendra/yii2-embed-script)[ Packagist](https://packagist.org/packages/sheillendra/yii2-embed-script)[ RSS](/packages/sheillendra-yii2-embed-script/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

yii2-embed-script
=================

[](#yii2-embed-script)

yii2 embed custom script or 3rd party like google tracking and seo or other

Quick start
===========

[](#quick-start)

Config
------

[](#config)

```
...
'components'=>[
  ...
  'embedScript'=>[
    'class'=>'sheillendra\embedscript\Collection',
    'services'=>[
      'googleAnalytics'=>[
        'class'=>'sheillendra\embedscript\services\GoogleAnalytics',
        'trackerId'=>'UA-XXXXXXXX-X',
      ]
    ]
  ]
  ...
]
...

```

trick for local config, use NotActive for service class I'm not yet found best way without a condition (if).

```
...
'components'=>[
  ...
  'embedScript'=>[
    'class'=>'sheillendra\embedscript\Collection',
    'services'=>[
      'googleAnalytics'=>[
        'class'=>'sheillendra\embedscript\services\NotActive'
      ]
    ]
  ]
  ...
]
...

```

using as widget in view / layout
--------------------------------

[](#using-as-widget-in-view--layout)

```

```

It can also be used as a bootstrap module so as not to bother applying widget in any layout or view.
----------------------------------------------------------------------------------------------------

[](#it-can-also-be-used-as-a-bootstrap-module-so-as-not-to-bother-applying-widget-in-any-layout-or-view)

```
#config
...
'bootstrap' => ['log','embedscript'],
'modules' => [
    'embedscript' => ['class'=>'sheillendra\embedscript\Module']
]
...

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

4189d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b665ab2d2cc4975ed74c80e26e2121bf049566cacc370cb865f90ef85a1c7056?d=identicon)[sheillendra](/maintainers/sheillendra)

---

Top Contributors

[![sheillendra](https://avatars.githubusercontent.com/u/3131932?v=4)](https://github.com/sheillendra "sheillendra (13 commits)")

---

Tags

useryii2yiiseosheillendra

### Embed Badge

![Health badge](/badges/sheillendra-yii2-embed-script/health.svg)

```
[![Health](https://phpackages.com/badges/sheillendra-yii2-embed-script/health.svg)](https://phpackages.com/packages/sheillendra-yii2-embed-script)
```

###  Alternatives

[2amigos/yii2-usuario

Highly customizable and extensible user management, authentication, and authorization Yii2 extension

298275.5k14](/packages/2amigos-yii2-usuario)[amnah/yii2-user

Yii 2 user authentication module

252225.7k3](/packages/amnah-yii2-user)

PHPackages © 2026

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