An open API service indexing awesome lists of open source software.

https://github.com/inquid/yii2-inquid-zendesk-chat

Embed Zendesk chat widget for Yii2
https://github.com/inquid/yii2-inquid-zendesk-chat

chat yii2 yii2-extension yii2-widgets zendesk zendesk-chat

Last synced: 2 months ago
JSON representation

Embed Zendesk chat widget for Yii2

Awesome Lists containing this project

README

        



Yii Framework

[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Yii2+extensions+support&item_number=22+Campaign&amount=5%2e00&currency_code=USD)

Yii2 Inquid Zendesk Chat
========================
Embed Zendesk chat widget for Yii2

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

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

Either run

```
php composer.phar require --prefer-dist inquid/yii2-inquid-zendesk-chat "*"
```

or add

```
"inquid/yii2-inquid-zendesk-chat": "*"
```

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

Usage
-----

Once the extension is installed, simply add an echo of this line, like this:
(For single view)
```php
= \inquid\zendeskchat\ZendeskChat::widget(); ?>
```

If you want to use it in all views add this in your layout file, for example:
```php

beginPage() ?>




= Html::csrfMetaTags() ?>
= Html::encode($this->title) ?>
head() ?>
= \inquid\zendeskchat\ZendeskChat::widget(); ?>

beginBody() ?>
```

Set the param from your params config file
```php
'[email protected]',
'zendesk_host' => 'inquid',
];
```
Or add it directly in the call
```php
= \inquid\zendeskchat\ZendeskChat::widget(['host'=>'inquid']); ?>
```

NOTE that ".zendesk.com" its optional, if missing it will be added

SUPPORT
-----
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Yii2+extensions+support&item_number=22+Campaign&amount=5%2e00&currency_code=USD)