Download the PHP package rcsil/whatsapp-business without Composer
On this page you can find all versions of the php package rcsil/whatsapp-business. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rcsil/whatsapp-business
More information about rcsil/whatsapp-business
Files in rcsil/whatsapp-business
Package whatsapp-business
Short Description Laravel package for Meta WhatsApp Business Platform Cloud API with Coexistence support.
License MIT
Homepage https://github.com/rcsil/laravel-whatsapp-business
Informations about the package whatsapp-business
Laravel WhatsApp Business
Laravel package for the Meta WhatsApp Business Platform Cloud API, with a first-class webhook implementation and database structures prepared for future chat-style views.
This package is in early development. The current implementation focuses on receiving, validating and storing WhatsApp Business webhooks from Meta.
Features
- Webhook verification endpoint for Meta.
- Signature validation with
X-Hub-Signature-256. - Raw webhook event storage for auditing and replay/debugging.
- Normalized contact, conversation, message and status persistence.
- Configurable routes, middleware, database connection and table names.
- Migration stubs ready to publish into a Laravel application.
- Initial structure for Coexistence scenarios, including inbound messages and echoed/manual app activity when Meta sends it through webhooks.
Requirements
- PHP 8.0 or higher.
- Laravel components 11.x, 12.x or 13.x.
- A Meta app configured for WhatsApp Business Platform webhooks.
Installation
Install the package with Composer:
Publish the configuration file:
Publish and run the migrations:
Configuration
Add the relevant environment variables to your application:
By default, the webhook endpoint is:
Use the GET URL in Meta's webhook configuration. The package validates hub.mode, hub.verify_token and returns hub.challenge when the verification token matches.
Meta webhook POST requests are accepted only when the request signature matches the configured app secret, unless signature verification is explicitly disabled.
Stored Data
The webhook handler stores the original Meta payload in whatsapp_business_webhook_events. It also extracts data into normalized tables:
whatsapp_business_contactswhatsapp_business_conversationswhatsapp_business_messageswhatsapp_business_message_statuses
This keeps the complete event payload available while also making it practical to build a chat view later by querying conversations and ordering messages by occurred_at.
Routes
Routes are enabled by default and use the api middleware group. You can change this in config/whatsapp-business.php:
Development
Install dependencies:
Useful commands:
The package currently has its first implementation layer in place. Tests and higher-level API clients are expected to evolve as the package grows.
Contributing
Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.
Security
If you discover a security vulnerability, please do not open a public issue. Follow the process in SECURITY.md.
License
This package is open source software licensed under the MIT license.
All versions of whatsapp-business with dependencies
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/notifications Version ^11.0|^12.0|^13.0
illuminate/routing Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
psr/log Version ^1.0 || ^2.0 || ^3.0