Download the PHP package 043668824/wag-laravel-sdk without Composer
On this page you can find all versions of the php package 043668824/wag-laravel-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 043668824/wag-laravel-sdk
More information about 043668824/wag-laravel-sdk
Files in 043668824/wag-laravel-sdk
Package wag-laravel-sdk
Short Description Laravel SDK for WhatsApp API Gateway - A comprehensive package for integrating WhatsApp messaging capabilities into Laravel applications
License MIT
Homepage https://github.com/043668824/wag-laravel-sdk
Informations about the package wag-laravel-sdk
WAG Laravel SDK
A comprehensive Laravel SDK for WUZAPI - WhatsApp Multi-User API powered by tulir/whatsmeow. This package provides a clean, Laravel-friendly interface to interact with WhatsApp Business API features including messaging, media handling, group management, and more.
Features
- ๐ Multi-User Support - Handle multiple WhatsApp accounts
- ๐ฌ Complete Messaging - Text, images, documents, audio, video, location
- ๐ฅ Group Management - Create, manage participants, settings
- ๐ Contact Management - Info, profile pictures, blocking
- ๐ Webhook Integration - Real-time event handling
- ๐ฐ Newsletter Support - Manage WhatsApp newsletters
- ๐ Secure Authentication - Dynamic user tokens + admin API keys
- ๐ฑ Session Management - QR codes, connection status
- ๐ก๏ธ Error Handling - Comprehensive exception handling
- ๐งช Laravel Integration - Service providers, facades, configuration
Installation
Install the package via Composer:
Laravel Auto-Discovery
The package will automatically register its service provider and facade.
For Laravel < 5.5, manually add to config/app.php
:
Configuration
Publish the configuration file:
Add the following variables to your .env
file:
Basic Usage
Authentication
Messaging
Text Messages
Rich Media
Interactive Messages
Group Management
User Management (Admin)
Session Management
Webhook Management
Error Handling
The SDK throws WAGException
when API calls fail:
Phone Number Formatting
The SDK automatically formats phone numbers to meet WhatsApp API requirements:
Available Services
The SDK provides the following services:
admin()
- Administrative operationssession()
- Session management and connectionwebhook()
- Webhook configurationchat()
- Messaging operationsuser()
- User profile operationsgroup()
- Group managementnewsletter()
- Newsletter operations
Utility Classes
The SDK includes helpful utility classes:
PhoneFormatter
- Format and validate phone numbersResponseFormatter
- Extract and process API responses
Security
- Never store WhatsApp tokens in environment variables or in version control
- Use proper database encryption for storing user tokens
- Consider implementing token rotation for enhanced security
Testing
License
This package is open-sourced software licensed under the MIT license.
All versions of wag-laravel-sdk with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0