laravel-whatsapp maintained by itsmedudes
Description
Laravel WhatsApp Business + Meta Graph client with multi-tenant token support.
Author
Last update
2026/01/17 15:45
(dev-master)
License
Downloads
1
Laravel WhatsApp (Meta Graph)
Production-ready WhatsApp Business + Meta Graph client for Laravel with multi-tenant tokens, retries, logging, and webhook verification.
Install
composer require itsmedudes/laravel-whatsapp
Publish config and migrations:
php artisan vendor:publish --tag=meta-config
php artisan vendor:publish --tag=meta-migrations
php artisan migrate
Usage
use LaravelWhatsapp\WhatsAppBusinessClient;
use LaravelWhatsapp\WhatsApp\MessagePayloadBuilder;
$client = app(WhatsAppBusinessClient::class)->forUser($userId);
$payload = MessagePayloadBuilder::text($to, 'Hello!');
$client->sendMessage($phoneNumberId, $payload);
Webhook verification
use LaravelWhatsapp\WebhookVerifier;
$verifier = new WebhookVerifier();
$ok = $verifier->verifySignature($payload, $signatureHeader);
Configuration
See config/meta.php after publishing.