Download the PHP package chat/whatsapp-integration without Composer
On this page you can find all versions of the php package chat/whatsapp-integration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package whatsapp-integration
WhatsApp Integration Package
This is a Composer package that integrates basic WhatsApp features into laravel apps using WhatsApp API with Twilio as the Business provider.This package handles the functionalities for sending WhatsApp messages and handling incoming messages in Laravel 5.8+ applications.
Table of Contents
- Features
- Requirements
- Installation
- Configuration
- Usage
- Basic Usage
- Template Messages
- Handling Webhooks
- API Integration Examples
- Error Handling
- Testing
- License
Features
- Send WhatsApp messages
- Template message support
- Media message handling
- Webhook processing
- Rate limiting
- Comprehensive error handling
- Validation
- Easy integration
Requirements
- PHP >= 7.1.3
- Laravel >= 5.8
- Twilio Account with WhatsApp capabilities
- Composer
Installation
-
Install the package via Composer:
- Add the service provider in
config/app.php
(Laravel will auto-discover it):
Configuration
-
Publish the configuration file:
- Add the following to your
.env
file:
Usage
Basic Usage
Template Messages
Handling Webhooks
API Integration Examples
Here's how to integrate the package with your Laravel application's API:
-
Create a controller:
- Define routes in
routes/api.php
:
Error Handling
The package provides several exception types:
Common error scenarios:
- Invalid phone number format (must be E.164: +1234567890)
- Invalid template ID format
- Invalid template variables
- Rate limiting exceeded
- Authentication errors
- Invalid webhook signatures
Testing
-
Set up your test environment:
-
Configure test credentials in
.env.testing
: - Run all tests:
Run specific test suites:
License
The MIT License (MIT). Please see License File for more information.
Credits
- Agnes
- Twilio SDK
All versions of whatsapp-integration with dependencies
illuminate/support Version ^5.8
illuminate/cache Version ^5.8
illuminate/container Version ^5.8
twilio/sdk Version ^8.3
guzzlehttp/guzzle Version ^6.3