Download the PHP package bootdesk/chat-sdk-adapter-whatsapp without Composer
On this page you can find all versions of the php package bootdesk/chat-sdk-adapter-whatsapp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bootdesk/chat-sdk-adapter-whatsapp
More information about bootdesk/chat-sdk-adapter-whatsapp
Files in bootdesk/chat-sdk-adapter-whatsapp
Package chat-sdk-adapter-whatsapp
Short Description WhatsApp adapter for bootdesk/chat-sdk-core
License MIT
Informations about the package chat-sdk-adapter-whatsapp
bootdesk/chat-sdk-adapter-whatsapp
WhatsApp Business API adapter for the laravel-bootdesk multi-platform messaging framework.
Install
Requires a PSR-18 HTTP client (guzzlehttp/guzzle, symfony/http-client, etc.) and a PSR-17 factory (nyholm/psr7 bundled).
Configuration
| Variable | Description | Example |
|---|---|---|
access_token |
WhatsApp Cloud API Access Token | EAAx... |
http_client |
PSR-18 HTTP client instance | new GuzzleHttp\Client |
phone_number_id |
Phone Number ID | 9876543210 |
app_secret |
Meta App Secret | abc123... |
verify_token |
Webhook Verify Token | my-verify-token |
Laravel
The ChatServiceProvider auto-binds Psr\Http\Client\ClientInterface to GuzzleHttp\Client. Add to config/chat.php:
Quick Example
Text Formatting
WhatsApp supports *bold*, _italic_, ~strikethrough~, `monospace`, code blocks, bullet lists (*/-), numbered lists (1.), and quotes (>). The SDK's WhatsAppFormatConverter automatically converts standard markdown (**bold**, ~~strike~~) to WhatsApp format when sending, and converts WhatsApp syntax back to standard markdown when receiving.
Template Messages
WhatsApp supports pre-approved message templates for notifications, alerts, and marketing. Send them via PostableMessage::template():
WhatsAppTemplate API
| Method | Description |
|---|---|
create(string $name, string $language) |
Factory with template name and language code |
positional() |
Use positional {{1}}, {{2}} format (default) |
named() |
Use named {{first_name}} format; bodyParam() then takes (text, parameterName) |
bodyParam(string $text, ?string $parameterName = null) |
Adds a body parameter; pass parameterName for named format |
headerImage(string $link) |
Header image media |
headerVideo(string $link) |
Header video media |
headerDocument(string $link, ?string $filename) |
Header document media |
headerText(string $text) |
Header text parameter |
buttonParam(string $label, string $payload = '', string $subtype = 'quick_reply') |
Button parameter; payload defaults to label if omitted |
Serializes to WhatsApp API format:
Named parameters
Templates using {{first_name}} instead of {{1}}:
Sends parameter_name on each parameter and parameter_format: "named" at the template level. Omit ->named() (or call ->positional()) for positional {{1}} format.
Falls back to markdown text via __toString() when an adapter doesn't support templates.
Thread ID Format
| Format | Description |
|---|---|
whatsapp:{phoneNumberId} |
One thread per phone number (missing user ID uses fallback) |
whatsapp:{phoneNumberId}:{userPhoneNumber} |
Thread with known phone number |
whatsapp:{phoneNumberId}:{bsuid} |
Thread identified by Business-Scoped User ID |
Webhook
WhatsApp Cloud API sends webhook payloads. Verify requests using HMAC signature verification with the app secret.
BSUID (Business-Scoped User ID) Support
As of May 2026, WhatsApp supports BSUIDs — a user identifier independent of phone numbers. The adapter transparently handles both identifiers:
- Inbound: reads
from(phone) with fallback tofrom_user_id(BSUID) - Outbound: detects BSUID format (
XX.xxxx) and usesrecipientinstead ofto - Thread IDs: use whatever identifier was available in the webhook
Feature Matrix
| Feature | Supported |
|---|---|
| Post messages | ✓ |
| Edit messages | ✗ |
| Delete messages | ✗ |
| Reactions | ✓ |
| Slash commands | ✓ |
| Typing indicator | ✓ |
| Fetch messages | ✓ |
| Fetch thread info | ✗ |
| Fetch channel info | ✗ |
| Get user | ✗ |
| Open DM | ✗ |
| Stream | ✓ |
Notes
WhatsApp Business API only. No edit or delete support in the WhatsApp Cloud API.
Documentationn
Full API documentation: https://bootdesk.github.io/chat-sdk
License
MIT
All versions of chat-sdk-adapter-whatsapp with dependencies
bootdesk/chat-sdk-core Version 0.4.47
ext-json Version *
psr/http-client Version ^1.0
psr/http-factory Version ^1.0