PHPackages                             jp3cki/yii2-googleadsense - 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. jp3cki/yii2-googleadsense

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

jp3cki/yii2-googleadsense
=========================

An extension for displaying Google AdSense ads.

v2.0.0(10y ago)03.2kMITPHPPHP &gt;=5.4.0

Since Jul 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/fetus-hina/yii2-googleadsense)[ Packagist](https://packagist.org/packages/jp3cki/yii2-googleadsense)[ RSS](/packages/jp3cki-yii2-googleadsense/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Google AdSense
==============

[](#google-adsense)

An extension for displaying Google AdSense ads.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist jp3cki/yii2-googleadsense "*"

```

or add

```
"jp3cki/yii2-googleadsense": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed :

1. Add the following parameter to your params.php file to specify your AdSense client ID: 'googleAdSenseClient' =&gt; ''
2. Optionally, disable ads in your development environment and show a placeholder instead by adding the following parameter to your params-local.php file: 'googleAdSenseEnable' =&gt; false
3. Use the widget where you want ads as follows:

```
	'slot' => '',
	'style' => '',
	'responsive' => ''
]); ?>```
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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

Every ~152 days

Total

4

Last Release

3905d ago

Major Versions

v1.1 → v2.0.02015-10-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/c07587f82c7761e4445d95292041d543aeda609e74cb366517bb80c4423d729f?d=identicon)[AIZAWA Hina](/maintainers/AIZAWA%20Hina)

---

Top Contributors

[![simonmesmith](https://avatars.githubusercontent.com/u/5099521?v=4)](https://github.com/simonmesmith "simonmesmith (4 commits)")[![fetus-hina](https://avatars.githubusercontent.com/u/848666?v=4)](https://github.com/fetus-hina "fetus-hina (1 commits)")

---

Tags

yii2extension

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jp3cki-yii2-googleadsense/health.svg)

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

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

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

Yii2 Cookie Consent Widget

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

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

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

Yii2 widget to register JS into view

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

PHPackages © 2026

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