2017 © Pedro Peláez
 

yii2-extension yii2-googleadsense

An extension for displaying Google AdSense ads.

image

simonmesmith/yii2-googleadsense

An extension for displaying Google AdSense ads.

  • Monday, May 18, 2015
  • by simonmesmith
  • Repository
  • 3 Watchers
  • 1 Stars
  • 166 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 3 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

Google AdSense

An extension for displaying Google AdSense ads., (*1)

Installation

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

Either run, (*3)

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

or add, (*4)

"simonmesmith/yii2-googleadsense": "*"

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

Usage

Once the extension is installed :, (*6)

  1. Add the following parameter to your params.php file to specify your AdSense client ID: 'googleAdSenseClient' => ''
  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' => false
  3. Use the widget where you want ads as follows:

php <?= \\simonmesmith\googleadsense\GoogleAdSense::widget([ 'slot' => '<the ID of the ad slot>', 'style' => '<optional style information>', 'responsive' => '<optional value specifying whether the ad unit is responsive; defaults to false>' ]); ?>, (*7)

The Versions

18/05 2015

dev-master

9999999-dev

An extension for displaying Google AdSense ads.

  Sources   Download

MIT

The Requires

 

by Simon Smith

extension yii2

18/05 2015

v1.0.1

1.0.1.0

An extension for displaying Google AdSense ads.

  Sources   Download

MIT

The Requires

 

by Simon Smith

extension yii2

18/05 2015

v1.1

1.1.0.0

An extension for displaying Google AdSense ads.

  Sources   Download

MIT

The Requires

 

by Simon Smith

extension yii2

14/07 2014

v1.0.0

1.0.0.0

An extension for displaying Google AdSense ads.

  Sources   Download

MIT

The Requires

 

by Simon Smith

extension yii2