Download the PHP package caydeesoft/whatsapp without Composer
On this page you can find all versions of the php package caydeesoft/whatsapp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download caydeesoft/whatsapp
More information about caydeesoft/whatsapp
Files in caydeesoft/whatsapp
Package whatsapp
Short Description A robust Laravel package for integrating with the Meta WhatsApp Cloud API, supporting messaging, webhooks, and media handling.
License MIT
Homepage https://github.com/caydeesoft/whatsapp
Informations about the package whatsapp
Meta WhatsApp Laravel Package
Direct Meta WhatsApp Cloud API integration for Laravel.
Features
- Webhook verification endpoint
- Inbound webhook handler
- Outbound text message endpoint
- Outbound template message endpoint
- HMAC validation with
X-Hub-Signature-256 - Event dispatching for inbound webhook payloads
- Publishable config file
Package Structure
src/WhatsAppServiceProvider.php: package bootstrappingsrc/Services/MetaWhatsAppClient.php: direct Meta Graph API clientsrc/Http/Controllers/WhatsAppWebhookController.php: webhook verification and inbound handlingsrc/Http/Controllers/WhatsAppMessageController.php: outbound message endpointssrc/Events/WhatsAppWebhookReceived.php: event fired for inbound webhook payloadsconfig/whatsapp.php: package configurationroutes/api.php: package routes
Configuration
Environment variables used by the package:
You can publish the config into the host Laravel app with:
Published config path:
Routes
By default the package exposes these routes:
GET /api/whatsapp/webhookPOST /api/whatsapp/webhookPOST /api/whatsapp/messages/textPOST /api/whatsapp/messages/template
The whatsapp segment is configurable through WHATSAPP_ROUTE_PREFIX.
Usage
Verify webhook
Meta will call:
The package validates the verify token and returns the challenge string.
Receive inbound webhooks
Meta will send webhook payloads to:
If WHATSAPP_APP_SECRET is configured, the package validates the X-Hub-Signature-256 signature before accepting the request.
The package then dispatches:
Send a text message
Request:
Send a template message
Request:
Extending in the Host App
Listen for the webhook event in your app to process messages, statuses, and delivery updates:
Meta Setup Checklist
- Create a Meta app and enable the WhatsApp product.
- Get an access token.
- Get your Phone Number ID and WhatsApp Business Account ID.
- Set the Meta webhook callback URL to your app's
/api/whatsapp/webhookendpoint. - Set Meta's verify token to match
WHATSAPP_WEBHOOK_VERIFY_TOKEN. - Subscribe the app to your WABA.
References
All versions of whatsapp with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/routing Version ^10.0|^11.0|^12.0|^13.0
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
guzzlehttp/guzzle Version ^7.0|^8.0|^9.0