Download the PHP package hatem-elsheref/whatsapp-business without Composer
On this page you can find all versions of the php package hatem-elsheref/whatsapp-business. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hatem-elsheref/whatsapp-business
More information about hatem-elsheref/whatsapp-business
Files in hatem-elsheref/whatsapp-business
Download hatem-elsheref/whatsapp-business
More information about hatem-elsheref/whatsapp-business
Files in hatem-elsheref/whatsapp-business
Vendor hatem-elsheref
Package whatsapp-business
Short Description WhatsApp Business SaaS Platform for Laravel - Multi-tenant, OAuth, WhatsApp Cloud API integration
License MIT
Homepage https://github.com/hatem-elsheref/whatsapp-business
Package whatsapp-business
Short Description WhatsApp Business SaaS Platform for Laravel - Multi-tenant, OAuth, WhatsApp Cloud API integration
License MIT
Homepage https://github.com/hatem-elsheref/whatsapp-business
Please rate this library. Is it a good library?
Informations about the package whatsapp-business
WhatsApp Business Package
A comprehensive WhatsApp Business SaaS package for Laravel with multi-tenant support, OAuth authentication, conversation management, and more.
Installation
-
Add the package to your Laravel project:
-
Run migrations (migrations run automatically):
- Seed default admin user (optional):
Configuration
-
Publish the configuration:
- Add these environment variables to your
.envfile:
Features
- Multi-Tenant Architecture: Each customer has their own isolated data
- Facebook OAuth: Customers connect via Facebook Login
- Manual Setup: Enter App ID, App Secret, and Access Token directly
- Multi-Number Support: Connect multiple WhatsApp numbers
- Conversation Management: Full inbox system with assignment
- Template Messages: Send WhatsApp-approved templates
- Conversation Flows: Build automated flows with triggers
- Ticketing System: Convert conversations to support tickets
- Analytics Dashboard: Track messages, conversations, agent performance
- Real-time Updates: Via Pusher/Laravel Echo
- Agent Management: Multi-agent support with roles
API Endpoints
Public Endpoints
GET /api/wa/webhook- Webhook verificationPOST /api/wa/webhook- Handle incoming messagesGET /api/wa/oauth/redirect- Redirect to Facebook OAuthGET /api/wa/oauth/callback- OAuth callbackPOST /api/wa/oauth/manual-setup- Manual setup with access token
Protected Endpoints (require Sanctum token)
Auth
POST /api/wa/auth/login- LoginPOST /api/wa/auth/logout- LogoutGET /api/wa/auth/me- Get current user
Conversations
GET /api/wa/conversations- List conversationsGET /api/wa/conversations/{id}- Get conversationGET /api/wa/conversations/{id}/messages- Get messagesPOST /api/wa/conversations/{id}/messages- Send messagePOST /api/wa/conversations/{id}/assign- Assign agentPOST /api/wa/conversations/{id}/archive- ArchivePOST /api/wa/conversations/{id}/block- Block
Templates
GET /api/wa/templates- List templatesGET /api/wa/templates/sync- Sync from MetaGET /api/wa/templates/{id}- Get templatePOST /api/wa/templates/{id}/send- Send template
Phone Numbers
GET /api/wa/phone-numbers- List numbersGET /api/wa/phone-numbers/sync- Sync from MetaGET /api/wa/phone-numbers/{id}- Get numberPOST /api/wa/phone-numbers/{id}/webhook/test- Test webhookDELETE /api/wa/phone-numbers/{id}- Remove number
Quick Replies
GET /api/wa/quick-replies- List quick repliesPOST /api/wa/quick-replies- CreatePUT /api/wa/quick-replies/{id}- UpdateDELETE /api/wa/quick-replies/{id}- Delete
Flows
GET /api/wa/flows- List flowsPOST /api/wa/flows- Create flowGET /api/wa/flows/{id}- Get flowPUT /api/wa/flows/{id}- Update flowDELETE /api/wa/flows/{id}- Delete flowPOST /api/wa/flows/{id}/toggle- Enable/disablePOST /api/wa/flows/{id}/steps- Update steps
Tickets
GET /api/wa/tickets- List ticketsPOST /api/wa/tickets- Create ticketGET /api/wa/tickets/{id}- Get ticketPUT /api/wa/tickets/{id}- Update ticketPOST /api/wa/tickets/{id}/assign- Assign agentPOST /api/wa/tickets/{id}/resolve- Resolve ticketPOST /api/wa/tickets/{id}/close- Close ticket
Agents
GET /api/wa/agents- List agentsPOST /api/wa/agents- Create agentPUT /api/wa/agents/{id}- Update agentDELETE /api/wa/agents/{id}- Delete agent
Notifications
GET /api/wa/notifications- List notificationsPUT /api/wa/notifications/{id}/read- Mark as readPUT /api/wa/notifications/read-all- Mark all as read
Analytics
GET /api/wa/analytics/overview- Dashboard overviewGET /api/wa/analytics/messages- Message statsGET /api/wa/analytics/conversations- Conversation statsGET /api/wa/analytics/agents- Agent performance
Usage
Sending a Message
Starting a Flow
Manual Setup (Without OAuth)
Broadcasting (Real-time)
The package includes Laravel Echo compatible broadcasting channels:
Channel Structure
whatsapp.customer.{id}- Customer-specific eventswhatsapp.conversation.{id}- Conversation updateswhatsapp.agent.{id}- Agent notifications
Frontend Integration
Database Tables
The package creates the following tables:
wa_customers- Customer accountswa_agents- Agent accountswa_phone_numbers- WhatsApp phone numberswa_templates- Message templateswa_quick_replies- Quick reply messageswa_flows- Automated conversation flowswa_flow_steps- Flow stepswa_flow_user_data- User flow progresswa_conversations- Customer conversationswa_messages- Messageswa_tickets- Support ticketswa_ticket_messages- Ticket messageswa_notifications- Notificationswa_analytics_events- Analytics events
Default Credentials
After seeding:
- Admin:
[email protected]/admin123 - Agent:
[email protected]/agent123
Testing
Or with Orchestra Testbench:
Auto-Discovery
Laravel 5.5+ auto-discovers the service providers. No manual registration needed.
License
MIT License
All versions of whatsapp-business with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
laravel/framework Version ^10.0|^11.0|^12.0
laravel/sanctum Version ^4.0
guzzlehttp/guzzle Version ^7.8
pusher/pusher-php-server Version ^7.2
laravel/framework Version ^10.0|^11.0|^12.0
laravel/sanctum Version ^4.0
guzzlehttp/guzzle Version ^7.8
pusher/pusher-php-server Version ^7.2
The package hatem-elsheref/whatsapp-business contains the following files
Loading the files please wait ...