Download the PHP package emam/whatsapp-manager without Composer
On this page you can find all versions of the php package emam/whatsapp-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download emam/whatsapp-manager
More information about emam/whatsapp-manager
Files in emam/whatsapp-manager
Package whatsapp-manager
Short Description A framework-agnostic PHP package for WhatsApp integration. Supports multiple drivers (Official Meta, Textly, Ultramsg, WaPilot), dynamic configuration, webhooks, and unified messaging API.
License MIT
Informations about the package whatsapp-manager
WhatsApp Manager Package ๐
A robust, framework-agnostic PHP package for integrating WhatsApp Business API into your applications. It supports multiple drivers, dynamic configuration, webhooks, and a unified messaging API.
๐ Features
- Multi-Driver Support:
- โ Official Meta WhatsApp Business API
- โ Textly
- โ Ultramsg
- โ WaPilot
- ๐ Custom Drivers: Easily extendable
- Unified API: Send messages using a consistent interface regardless of the driver.
- Dynamic Configuration: Load config from arrays, JSON, or environment variables.
- Webhook Handling: Secure validation (HMAC signature) and processing of incoming messages.
- Publishing System: Publish config and drivers to your project for customization.
- Framework Agnostic: Works with Laravel, Symfony, CodeIgniter, or native PHP.
- Type Safe: Strict types and comprehensive error handling.
๐ฆ Installation
Install via Composer:
โ๏ธ Configuration
1. Publish Configuration
Run the publishing command to create a configuration file in your project:
This creates config/whatsapp.php.
2. Set Environment Variables
Add your credentials to your .env file:
๐ Usage
Sending Messages
๐ ๏ธ Advanced Usage
Template Management
Template Builder (Fluent API)
Handling Webhooks
The package provides a secure WebhookValidator to handle incoming webhooks.
Native PHP Example:
๐ ๏ธ Advanced Usage
Custom Drivers
You can easily add your own driver:
Publishing Drivers
You can publish driver files to your project to modify them:
This creates app/WhatsApp/Drivers/OfficialDriver.php which you can customize.
๐งช Testing
Run the test suite:
๐ Adding Custom Drivers
The package provides a complete scaffolding system to easily add new WhatsApp providers:
Quick Start
What You Get
- โ Complete driver template with all required methods
- โ Pre-configured tests ready to run
- โ Step-by-step instructions for integration
- โ Best practices built-in
- โ Type-safe implementation
Example: Adding a New Provider
Documentation
- ๐ Complete Driver Development Guide
- โ Driver Development Checklist
- ๐ง Driver Generator Tool
๐ค Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
๐ License
The MIT License (MIT). Please see License File for more information.