tomlutzenberger/yii2-smartsupp-chat Yii2 Widget for Smartsupp Chat

Yii2 Smartsupp Chat

GitHub release (latest SemVer) Packagist PHP Version Support Libraries.io dependency status for GitHub repo Packagist Downloads Lines of code Quality Gate Status Maintenance

Yii2 Smartsupp

  1. Installation
  2. Usage
  3. License

Yii2 Widget for Smartsupp Chat

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist tomlutzenberger/yii2-smartsupp-chat "*"

or add

"tomlutzenberger/yii2-smartsupp-chat": "*"

to the required section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by:

<?= \TomLutzenberger\Smartsupp\SmartsuppChat::widget() ?>

You can either add the ID of your container to the params.php

<?php
      
return [
    // ...
    'smartsupp' => 'your_key',
];

or pass it directly to the widget:

<?= \TomLutzenberger\Smartsupp\SmartsuppChat::widget([
    'key' => 'your_key'
]) ?>

To be able to use your own triggers you can do this by setting 2 optional parameters:

<?= \TomLutzenberger\Smartsupp\SmartsuppChat::widget([
    'useCustomOpener' => true,
    'useCustomOpenerMobile' => true,
]) ?>

For more details see:

License

This package is published under the MIT License and can be used for any commercial and personal projects.

2 0
1 follower
629 downloads
Yii Version: 2.0
License: MIT
Category: Web Service
Developed by: Tom Lutzenberger
Created on: Nov 28, 2019
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions