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
- Host: GitHub
- URL: https://github.com/inquid/yii2-inquid-zendesk-chat
- Owner: inquid
- License: lgpl-3.0
- Created: 2017-05-18T18:07:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-21T06:12:22.000Z (over 7 years ago)
- Last Synced: 2025-03-12T20:04:44.462Z (3 months ago)
- Topics: chat, yii2, yii2-extension, yii2-widgets, zendesk, zendesk-chat
- Language: PHP
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Yii2+extensions+support&item_number=22+Campaign&amount=5%2e00¤cy_code=USD)
Yii2 Inquid Zendesk Chat
========================
Embed Zendesk chat widget for Yii2Installation
------------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:
```phpbeginPage() ?>
= 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
-----
[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Yii2+extensions+support&item_number=22+Campaign&amount=5%2e00¤cy_code=USD)