PHPackages                             smartsupp/chat-code-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. smartsupp/chat-code-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

smartsupp/chat-code-generator
=============================

This simple PHP class allows you to easily generate Smartsupp.com JS chat code.

1.0.3(1y ago)221.4k↓50%11PHPPHP &gt;=5.3.2CI failing

Since Aug 7Pushed 1y ago11 watchersCompare

[ Source](https://github.com/smartsupp/chat-code-generator)[ Packagist](https://packagist.org/packages/smartsupp/chat-code-generator)[ Docs](https://www.smartsupp.com/)[ RSS](/packages/smartsupp-chat-code-generator/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (1)Versions (10)Used By (1)

[![Build Status](https://camo.githubusercontent.com/86f75255c9945cc39791bb8412fab27679ba832d62633e7f37f7d07c8c769291/68747470733a2f2f7472617669732d63692e6f72672f736d617274737570702f636861742d636f64652d67656e657261746f722e737667)](https://travis-ci.org/smartsupp/chat-code-generator)[![Coverage Status](https://camo.githubusercontent.com/0faa38e5ac14512a99ee58fc19d86a0c3512f01d0c8bccecda412bfce46e05c2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f736d617274737570702f636861742d636f64652d67656e657261746f722f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/smartsupp/chat-code-generator?branch=master)

Smartsupp chat code generator
=============================

[](#smartsupp-chat-code-generator)

This is simple PHP class for Smartsupp chat API which helps you to generate chat JavaScript code.

-
- [More info about Smartsupp CHAT API](https://developers.smartsupp.com/chat/configuration) This is "Get started" doc for chat API.
- [More info about Smartsupp CHAT API - Overview](https://developers.smartsupp.com/chat/overview) This is full documentation for chat API. Note, that not all properties are possible to be set using this class.

Get Started
-----------

[](#get-started)

Here is an example on how to use it:

```
  $chat = new Smartsupp\ChatGenerator;

  $chat->setKey('XYZ123456');
  $chat->disableSendEmailTranscript();
  $chat->enableRating('advanced', true);
  $chat->setBoxPosition('left', 'side', 20, 120);
  $chat->setName('Johny Depp');
  $chat->setEmail('johny@depp.com');
  $chat->setVariable('orderTotal', 'Total orders', 150);
  $chat->setVariable('lastOrder', 'Last ordered', '2015-07-09');
  $chat->setGoogleAnalytics('UA-123456');
  $data = $chat->render();
```

Requirements
------------

[](#requirements)

For backward compatibility with multiple plugins library supports PHP starting from version 5.3. It is highly possibly the constraint will change to 5.6+ in near future.

Copyright
---------

[](#copyright)

Copyright (c) since 2016 Smartsupp.com, s.r.o.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance48

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 93.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~449 days

Recently: every ~869 days

Total

9

Last Release

392d ago

Major Versions

0.1.4 → 1.02015-12-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/a514b1929cc7200362951dda332e79e046b7e749feab81e1d1b1baa475c83935?d=identicon)[smartsupp](/maintainers/smartsupp)

![](https://www.gravatar.com/avatar/18b93d6bbf3f004affb009905d3ff7f6f92a267e2311d83596db443f8d3a301b?d=identicon)[marekgach](/maintainers/marekgach)

---

Top Contributors

[![marekgach](https://avatars.githubusercontent.com/u/7091135?v=4)](https://github.com/marekgach "marekgach (44 commits)")[![claudio-ferraro](https://avatars.githubusercontent.com/u/54107647?v=4)](https://github.com/claudio-ferraro "claudio-ferraro (1 commits)")[![famousgarkin](https://avatars.githubusercontent.com/u/144425?v=4)](https://github.com/famousgarkin "famousgarkin (1 commits)")[![prokopschield](https://avatars.githubusercontent.com/u/76836484?v=4)](https://github.com/prokopschield "prokopschield (1 commits)")

---

Tags

chat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/smartsupp-chat-code-generator/health.svg)

```
[![Health](https://phpackages.com/badges/smartsupp-chat-code-generator/health.svg)](https://phpackages.com/packages/smartsupp-chat-code-generator)
```

###  Alternatives

[musonza/chat

Chat Package for Laravel

1.2k276.7k1](/packages/musonza-chat)[php-junior/laravel-video-chat

Laravel Video Chat using Socket.IO and WebRTC

81718.2k](/packages/php-junior-laravel-video-chat)[lexxyungcarter/chatmessenger

Simple one-to-one/group chat messaging tool for Laravel 5, 6, 7, 8, 9 &amp; 10 with Pusher Integration

10725.7k](/packages/lexxyungcarter-chatmessenger)[syntaxlexx/chatmessenger

Simple one-to-one/group chat messaging tool for Laravel 5, 6, 7, 8, 9 &amp; 10 with Pusher Integration

10511.5k](/packages/syntaxlexx-chatmessenger)[spirit55555/php-minecraft

Useful PHP classes for Minecraft

6826.2k](/packages/spirit55555-php-minecraft)[emotality/tawk-laravel

A tawk.to chat widget for Laravel.

5223.7k](/packages/emotality-tawk-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
