PHPackages                             letochat/plugin5 - 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. [API Development](/categories/api)
4. /
5. letochat/plugin5

ActiveLibrary[API Development](/categories/api)

letochat/plugin5
================

You can use this repo to advance integrate your website with LetoChat Platform.

01PHP

Since Apr 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/LetoChat/plugin5)[ Packagist](https://packagist.org/packages/letochat/plugin5)[ RSS](/packages/letochat-plugin5/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

LetoChat - Generic Plugin 5
===========================

[](#letochat---generic-plugin-5)

!!! THIS REPO IS UNDER CONSTRUCTION !!!

Use this plugin if your project supports only PHP 5.6. For projects running with PHP 7+, use [this plugin instead](https://github.com/letochat/plugin7).

If you have a custom web application and want to integrate advance features of LetoChat platform, we strongly recommend use of this. This is an official connector for LetoChat platform.

Dedicated plugins
-----------------

[](#dedicated-plugins)

In case your project is based on a known platform, take a look and check if you have luck to have a dedicated plugin for it:

   [![](https://avatars.githubusercontent.com/u/168457?s=45)](https://avatars.githubusercontent.com/u/168457?s=45)   **Magento 2**
 [ https://github.com/letochat/magento2-plugin ](https://github.com/letochat/magento2-plugin)     [![](https://avatars.githubusercontent.com/u/2815696?s=45)](https://avatars.githubusercontent.com/u/2815696?s=45)   **PrestShop**
 [ https://github.com/letochat/prestashop-plugin ](https://github.com/letochat/prestashop-plugin)     [![](https://avatars.githubusercontent.com/u/214225?s=45)](https://avatars.githubusercontent.com/u/214225?s=45)   **OpenCart**
 [ https://github.com/letochat/opencart-plugin ](https://github.com/letochat/opencart-plugin)     [![](https://avatars.githubusercontent.com/u/276006?s=45)](https://avatars.githubusercontent.com/u/276006?s=45)   **WordPress**
 [ https://github.com/letochat/wordpress-plugin ](https://github.com/letochat/wordpress-plugin)     [![](https://avatars.githubusercontent.com/u/473596?s=45)](https://avatars.githubusercontent.com/u/473596?s=45)   **WooCommerce** *(same plugin as for WordPress)*
 [ https://github.com/letochat/wordpress-plugin ](https://github.com/letochat/wordpress-plugin)  If you didn't find it in the upper table, now let's get started with the basics.

Getting started
---------------

[](#getting-started)

Using composer

`composer require letochat/plugin5`

Without composer

Take a look in /src folder and grab what you need.

LetoChat Widget
---------------

[](#letochat-widget)

If you want to generate an advance script for chat that integrates more details about visitor, see the example below:

```
require "vendor/autoload.php";

$channelId = 'your-channel-id';
$channelSecret = 'your-channel-secret';

try{

    $chat = (new LetoChat\Widget($channelId, $channelSecret))->infoValues([
        'name' => 'Ion Popescu',
        'email' => 'ion.popescu@gmail.com',
    ])->customValues([
        'Client type' => 'Silver',
        'Client code' => '0456785',
    ]);

    $chat->event('cart-add', [
        'id' 		=> 1,
        'name' 		=> 'Dell Ispiron',
        'image' 	=> 'https://dell.com/image',
        'quantity' 	=> 1,
        'price' 	=> 1534,
        'currency' 	=> 'EUR',
        'link'		=> 'https://dell.com/product-description-link',
    ]);

    echo $chat->build();

} catch ( Exception $e ){

    echo 'Error generating script: ' . $e->getMessage();;

}
```

Connect website with LetoChat platform
--------------------------------------

[](#connect-website-with-letochat-platform)

```
require "vendor/autoload.php";

$channelId 		= 'your-channel-id';
$channelSecret 	= 'your-channel-secret';
$authSecret 	= 'your-auth-secret';

$api = new LetoChat\Connector($channelId, $channelSecret, $authSecret, [
    'get-order' 	=> 'https://example.com/api/letochat/get-order',
    'get-orders' 	=> 'https://example.com/api/letochat/get-orders',
    'get-user-cart' => 'https://example.com/api/letochat/get-user-cart',
    'get-users-cart'=> 'https://example.com/api/letochat/get-users-cart',
]);

if( $api->check() ){
    echo 'Valid channel data';
} else {
    echo 'Error: ' . $api->getError();
}

echo '';

if( $api->connect() ){
    echo 'Connected';
} else {
    echo 'Error connecting: ' . $api->getError();
}
```

Documentation
-------------

[](#documentation)

Like others sections, this is under construct. Please check our documentation from here:

- Widget Documentation
- Connector Documentation

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1463397?v=4)[doubleweb](/maintainers/doubleweb)[@doubleweb](https://github.com/doubleweb)

### Embed Badge

![Health badge](/badges/letochat-plugin5/health.svg)

```
[![Health](https://phpackages.com/badges/letochat-plugin5/health.svg)](https://phpackages.com/packages/letochat-plugin5)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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