zopim extension for the Yii2 framework

Installs: 2 511

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 2

Open Issues: 0


v1.0 2016-06-29 14:57 UTC

This package is not auto-updated.

Last update: 2022-08-06 07:50:10 UTC


This extension provides easy way to add Zopim chat in your Yii2 application.

Based on


The preferred way to install this extension is through composer.

Either run

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

or add

"thiagotalma/yii2-zopim": "*"

to the require section of your composer.json file.


In your /views/layouts/main.php add

use talma\zopim\widgets\ZopimScript;

Then before </head> add following code

<?= 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:

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