PHPackages                             tusharkhan/chatbot - 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. tusharkhan/chatbot

ActiveLibrary[API Development](/categories/api)

tusharkhan/chatbot
==================

🤖 Modern PHP chatbot framework with multi-platform support (Telegram, Slack, Web). Build intelligent conversational bots with pattern matching, state management, and middleware. Works with any PHP framework or standalone.

1.0.0(9mo ago)32↓50%3[1 issues](https://github.com/tusharkhan/chatbot/issues)MITPHPPHP &gt;=8.0CI passing

Since Aug 4Pushed 9mo agoCompare

[ Source](https://github.com/tusharkhan/chatbot)[ Packagist](https://packagist.org/packages/tusharkhan/chatbot)[ RSS](/packages/tusharkhan-chatbot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

[![](chatbot.png)](chatbot.png)

TusharKhan Chatbot Package
==========================

[](#tusharkhan-chatbot-package)

A framework-agnostic PHP chatbot package that works seamlessly with plain PHP, Laravel, or any custom PHP application. Build powerful chatbots with multi-platform support including Web, Telegram, and Slack.

Package details
---------------

[](#package-details)

- PHP: &gt;=8.0
- License: MIT

Note: The downloads badge above is provided by Packagist/Shields.io and will display live download counts after the package is published on Packagist. If you prefer to show a static number, replace the badge with the value from Packagist.

🚀 Features
----------

[](#-features)

- **Framework Agnostic**: Works with any PHP framework or plain PHP
- **Multi-Platform Support**: Web, Telegram, and Slack drivers included
- **Pattern Matching**: Flexible message routing with parameters, wildcards, and regex
- **Multi-turn Conversations**: Stateful conversations with context management
- **Storage Options**: File-based or in-memory storage (easily extensible)
- **Middleware Support**: Add custom processing logic
- **Fallback Handling**: Graceful handling of unmatched messages
- **Easy Setup**: No complex configuration required
- **Rich Messaging**: Support for buttons, keyboards, attachments, and interactive components
- **Modern Platform Features**: Events API, slash commands, and interactive components
- **Fully Tested**: Comprehensive unit test coverage (79 tests, 202 assertions)

📦 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require tusharkhan/chatbot
```

🎯 Quick Start
-------------

[](#-quick-start)

### Basic Web Chatbot

[](#basic-web-chatbot)

```
