hch / chat-bot-bundle
Bundle Symfony pour intégrer un chatbot IA avec support multi-LLM
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- doctrine/dbal: ^3.0
- psr/log: ^3.0
- symfony/framework-bundle: ^6.0|^7.0
- symfony/http-client: ^6.0|^7.0
Requires (Dev)
- phpunit/phpunit: ^10.0
- symfony/browser-kit: ^6.0|^7.0
- symfony/css-selector: ^6.0|^7.0
- symfony/phpunit-bridge: ^6.0|^7.0
- dev-main
- v1.0.39
- v1.0.38
- v1.0.37
- v1.0.36
- v1.0.35
- v1.0.34
- v1.0.33
- v1.0.32
- v1.0.31
- v1.0.30
- v1.0.29
- v1.0.28
- v1.0.27
- v1.0.26
- v1.0.25
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
This package is auto-updated.
Last update: 2025-05-16 14:54:36 UTC
README
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
- 🤖 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
composer require hch/chat-bot-bundle
Intégration rapide
- Ajouter le widget dans votre template Twig :
{# templates/base.html.twig #}
{{ render_chatbot_widget() }}
- Ou utiliser le hook JavaScript :
<!-- Dans votre layout --> <div id="chatbot-container"></div> <script> HCHChatBot.init({ container: '#chatbot-container', theme: 'light', position: 'bottom-right' }); </script>
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
- Surcharger les templates :
{# templates/bundles/HCHChatBotBundle/widget.html.twig #} {% extends '@!HCHChatBot/widget.html.twig' %} {% block chatbot_header %} <div class="custom-header"> {{ parent() }} </div> {% endblock %}
- 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
beforeSend
: Modification du message avant envoiafterResponse
: Traitement de la réponseonError
: Gestion personnalisée des erreursonInit
: Actions à l'initialisationonOpen
: Actions à l'ouverture du chatonClose
: Actions à la fermeture du chat
Documentation
Support
Pour toute question ou assistance :
- GitHub Issues : github.com/lechaabani/hch-chatbot-bundle/issues
- Email : chaabani.hammadi@gmail.com
License
MIT
Author
Hamadi CHAABANI