2017 © Pedro Peláez
 

yii2-extension yii2-zopim

zopim extension for the Yii2 framework

image

thiagotalma/yii2-zopim

zopim extension for the Yii2 framework

  • Wednesday, June 29, 2016
  • by thiagotalma
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,258 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Zopim for Yii2

This extension provides easy way to add Zopim chat in your Yii2 application., (*1)

Based on https://github.com/cybercog/yii2-google-analytics, (*2)

Installation

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

Either run, (*4)

$ php composer.phar require thiagotalma/yii2-zopim "*"

or add, (*5)

"thiagotalma/yii2-zopim": "*"

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

Usage

In your /views/layouts/main.php add, (*7)

use talma\zopim\widgets\ZopimScript;

Then before </head> add following code, (*8)

<?= ZopimScript::widget(
    [
        'appId' => 'XXXXXXXX'
    ]
) ?>

Advanced usage

If you need the output without script tag to combined with registerJs or registerJsFile as renderPartial to add dependency or positioning configuration, you can use omitScriptTag true to disable script tag, example:, (*9)

<?= $this->registerJs(
    ZopimScript::widget([
        'appId' => 'XXXXXXXX',
        'omitScriptTag' => true
    ]), \yii\web\View::POS_END
); ?>

The Versions

29/06 2016

dev-master

9999999-dev

zopim extension for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 zopim

29/06 2016

v1.0

1.0.0.0

zopim extension for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 zopim