bootdesk / chat-sdk-adapter-web
Web adapter for bootdesk/chat-sdk-core — browser chat UI via JSON request/response
0.2.4
2026-05-18 23:13 UTC
Requires
- php: >=8.2
- ext-json: *
- bootdesk/chat-sdk-core: ^0.2.4
Requires (Dev)
- phpunit/phpunit: ^11.0
README
Generic web/REST adapter for the laravel-bootdesk multi-platform messaging framework.
Install
composer require bootdesk/chat-sdk-adapter-web
Configuration
| Variable | Description | Example |
|---|---|---|
user_name |
Display name for the bot (optional) | Bot |
use BootDesk\ChatSDK\Web\WebAdapter; $adapter = new WebAdapter([ 'user_name' => env('WEB_USER_NAME', 'Bot'), ]);
Quick Example
// Post a message in a web session $adapter->postMessage('web:session-abc123', 'Hello from laravel-bootdesk!'); // Handle incoming webhook // POST body: {"text": "Hi", "userId": "user-1", "sessionId": "session-abc123"}
Thread ID Format
| Format | Description |
|---|---|
web:{sessionId} |
Per-session threading |
Webhook
Accepts POST requests with a JSON body containing text, userId, and sessionId fields.
Feature Matrix
| Feature | Supported |
|---|---|
| Post messages | ✓ |
| Edit messages | ✗ |
| Delete messages | ✗ |
| Reactions | ✗ |
| Typing indicator | ✗ |
| Fetch messages | ✗ |
| Fetch thread info | ✗ |
| Fetch channel info | ✗ |
| Get user | ✗ |
| Open DM | ✗ |
| Stream | ✓ |
Notes
Generic adapter for web/REST integrations. Use as a foundation for building custom adapters.
License
MIT