PHPackages                             hch/chat-bot-bundle - 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. hch/chat-bot-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

hch/chat-bot-bundle
===================

Bundle Symfony pour intégrer un chatbot IA avec support multi-LLM

v1.0.39(1y ago)016MITPHPPHP &gt;=8.1

Since Dec 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lechaabani/HCHChatBotBundle)[ Packagist](https://packagist.org/packages/hch/chat-bot-bundle)[ Docs](https://github.com/lechaabani/HCHChatBotBundle)[ RSS](/packages/hch-chat-bot-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (41)Used By (0)

HCHChatBotBundle
================

[](#hchchatbotbundle)

Bundle Symfony pour intégrer un chatbot IA avec gestion des plans Free/Premium, support multi-LLM et interface utilisateur prête à l'emploi.

Caractéristiques
----------------

[](#caractéristiques)

- 🤖 Support Multiple LLMs :
    - OpenAI GPT
    - Claude Anthropic
    - LLaMA
    - Mistral AI
    - Google PaLM
    - Cohere
    - LLMs personnalisés
- 💬 Interface de chat prête à l'emploi :
    - Widget intégrable
    - Personnalisation complète
    - Responsive design
    - Mode sombre/clair
- 🎨 Thèmes et templates :
    - Templates Twig personnalisables
    - Styles CSS modifiables
    - Hooks pour personnalisation
- 🔌 Intégration facile :
    - Installation en une ligne
    - Auto-configuration
    - Widgets prêts à l'emploi
- 📊 Analytics et monitoring :
    - Dashboard d'administration
    - Statistiques d'utilisation
    - Monitoring des coûts
    - Alertes et notifications
- 💎 Gestion Free/Premium
- 🔌 Architecture modulaire

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

[](#installation)

```
composer require hch/chat-bot-bundle
```

Intégration rapide
------------------

[](#intégration-rapide)

1. Ajouter le widget dans votre template Twig :

```
{# templates/base.html.twig #}
{{ render_chatbot_widget() }}
```

2. Ou utiliser le hook JavaScript :

```

    HCHChatBot.init({
        container: '#chatbot-container',
        theme: 'light',
        position: 'bottom-right'
    });

```

Configuration
-------------

[](#configuration)

```
# config/packages/hch_chatbot.yaml
hch_chatbot:
    interface:
        enabled: true
        theme: 'default'
        position: 'bottom-right'
        templates:
            widget: '@HCHChatBot/widget.html.twig'
            messages: '@HCHChatBot/messages.html.twig'
    providers:
        openai:
            api_key: '%env(OPENAI_API_KEY)%'
            model: 'gpt-3.5-turbo'
    admin:
        enabled: true
        dashboard: true
```

Personnalisation de l'interface
-------------------------------

[](#personnalisation-de-linterface)

1. Surcharger les templates :

```
{# templates/bundles/HCHChatBotBundle/widget.html.twig #}
{% extends '@!HCHChatBot/widget.html.twig' %}

{% block chatbot_header %}

        {{ parent() }}

{% endblock %}
```

2. Personnaliser via JavaScript :

```
HCHChatBot.customize({
    headerText: 'Mon Assistant',
    primaryColor: '#007bff',
    hooks: {
        beforeSend: (message) => {
            // Personnalisation avant envoi
            return message;
        },
        afterResponse: (response) => {
            // Personnalisation après réponse
            return response;
        }
    }
});
```

Hooks disponibles
-----------------

[](#hooks-disponibles)

- `beforeSend`: Modification du message avant envoi
- `afterResponse`: Traitement de la réponse
- `onError`: Gestion personnalisée des erreurs
- `onInit`: Actions à l'initialisation
- `onOpen`: Actions à l'ouverture du chat
- `onClose`: Actions à la fermeture du chat

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

[](#documentation)

[Documentation complète](docs/index.md)

Support
-------

[](#support)

Pour toute question ou assistance :

- GitHub Issues : [github.com/lechaabani/hch-chatbot-bundle/issues](https://github.com/lechaabani/hch-chatbot-bundle/issues)
- Email :

License
-------

[](#license)

MIT

Author
------

[](#author)

Hamadi CHAABANI

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

40

Last Release

518d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e8d866baf77d018f6f41d6dfe3fd8104dfe49a30b5c717bad62cefd1d8a3d43?d=identicon)[Hamadi](/maintainers/Hamadi)

---

Top Contributors

[![lechaabani](https://avatars.githubusercontent.com/u/3493399?v=4)](https://github.com/lechaabani "lechaabani (1 commits)")

---

Tags

symfonyaiopenaichatbotpremium

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hch-chat-bot-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/hch-chat-bot-bundle/health.svg)](https://phpackages.com/packages/hch-chat-bot-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[pentatrion/vite-bundle

Vite integration for your Symfony app

2755.3M13](/packages/pentatrion-vite-bundle)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k136](/packages/symfony-ai-platform)[symfony/ai-agent

PHP library for building agentic applications.

30536.7k44](/packages/symfony-ai-agent)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

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