Download the PHP package wallacemartinss/filament-whatsapp-conector without Composer
On this page you can find all versions of the php package wallacemartinss/filament-whatsapp-conector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wallacemartinss/filament-whatsapp-conector
More information about wallacemartinss/filament-whatsapp-conector
Files in wallacemartinss/filament-whatsapp-conector
Package filament-whatsapp-conector
Short Description Filament plugin for WhatsApp integration with Evolution API v2
License MIT
Homepage https://github.com/wallacemartinss/filament-whatsapp-conector
Informations about the package filament-whatsapp-conector
Filament Evolution - WhatsApp Connector
A Filament v5 plugin for WhatsApp integration using Evolution API v2.
Features
- 🔌 Easy Integration - Connect your WhatsApp with Evolution API v2
- 🏢 Multi-Tenancy - Full support for Filament's native multi-tenancy
- 📱 QR Code Connection - Real-time QR code display with countdown timer
- 📨 Webhook Support - Receive events from Evolution API (messages, connection updates, etc.)
- 💬 Message Sending - Send text, images, videos, audio, documents and more
- 🧩 Interactive Messages - Reply Buttons, List, CTA, PIX and Carousel (Evolution API v2.4.0+)
- 🎯 Filament Action - Ready-to-use action for sending messages from anywhere
- 🔧 Service Trait - Easily integrate message sending into your own services
- 🔐 Secure - Credentials stored in config/env, never in database
- 🎨 Filament v5 Native - Beautiful UI with Filament components
- 🌍 Translations - Full i18n support (English and Portuguese included)
- ⚡ Real-time - Livewire-powered components with Alpine.js
Screenshots
📸 Click to view screenshots
| | | |:---:|:---:| |  |  | |  |  | |  |  | |  |  |Requirements
- PHP 8.2+
- Laravel 11.x or 12.x
- Filament v5
- Livewire v4
- Evolution API v2 instance
- Evolution API v2.4.0+ is required for interactive messages (Buttons / List / CTA / PIX / Carousel). All other message types work on any v2 release.
Installation
Step 1: Install via Composer
Step 2: Publish Configuration
Step 3: Run Migrations
Step 4: Register the Plugin
Add the plugin to your Filament Panel Provider:
Step 5: Configure Tailwind CSS
Add the plugin's views and source files to your Filament theme CSS file (e.g., resources/css/filament/admin/theme.css):
Then rebuild your assets:
Plugin Options
You can customize which resources are available in the panel:
| Method | Default | Description |
|---|---|---|
whatsappInstanceResource(bool) |
true |
Show/hide the WhatsApp Instances resource |
viewMessageHistory(bool) |
false |
Show/hide the Message History resource |
viewWebhookLogs(bool) |
false |
Show/hide the Webhook Logs resource |
Example: Full Configuration
Configuration
Environment Variables (.env)
Step 6: Start the Queue Worker
The plugin uses Laravel queues to process webhooks and send messages. Make sure you have a queue worker running:
For production, use a process manager like Supervisor to keep the worker running. See the Laravel Queue Documentation for more details.
Config File
All other settings are in config/filament-evolution.php. Publish and customize:
Key configuration options:
Cleanup Command
The plugin includes a cleanup command to remove old records:
Scheduling Cleanup
Add to your routes/console.php:
Instance Management
Creating an Instance
- Navigate to WhatsApp > Instances
- Click New Instance
- Fill in the instance name and phone number
- Configure settings (reject calls, always online, etc.)
- Click Save - the QR Code modal will open automatically
- Scan the QR Code with your WhatsApp
Instance Settings
| Setting | Description |
|---|---|
| Reject Calls | Automatically reject incoming calls |
| Message on Call | Message sent when rejecting calls |
| Ignore Groups | Don't process messages from groups |
| Always Online | Keep WhatsApp status as online |
| Read Messages | Automatically mark messages as read |
| Read Status | Automatically view status updates |
| Sync Full History | Sync all message history on connection |
Sending Messages
The plugin provides three ways to send WhatsApp messages:
- Filament Action - For UI-based sending in tables, pages and widgets
- Whatsapp Facade - For quick message sending anywhere
- CanSendWhatsappMessage Trait - For integration into your services
1. Using the Filament Action
The SendWhatsappMessageAction can be used in any Filament page, resource, or widget.
Basic Usage
Pre-filling Values
Using with Table Records
Get the phone number automatically from the record:
Hiding Form Fields
Limiting Message Types
Custom Storage Disk
2. Using the Whatsapp Facade
For programmatic message sending from anywhere in your application:
🧩 Interactive messages (Buttons / List / CTA / PIX / Carousel) require Evolution API v2.4.0+. See the Interactive Messages section below.
3. Using the Trait in Your Services
Add the CanSendWhatsappMessage trait to integrate message sending into your business logic:
Available Trait Methods
| Method | Description |
|---|---|
sendWhatsappText($number, $message) |
Send text message |
sendWhatsappImage($number, $path, $caption) |
Send image |
sendWhatsappVideo($number, $path, $caption) |
Send video |
sendWhatsappAudio($number, $path) |
Send audio |
sendWhatsappDocument($number, $path, $fileName, $caption) |
Send document |
sendWhatsappLocation($number, $lat, $lng, $name, $address) |
Send location |
sendWhatsappContact($number, $contactName, $contactNumber) |
Send contact card |
sendWhatsappButtons($number, $description, $buttons, $title, $footer) |
Send reply / mixed buttons (v2.4.0+) |
sendWhatsappCta($number, $description, $buttons, $title, $footer) |
Send up to 2 CTA buttons (v2.4.0+) |
sendWhatsappPix($number, $description, $pix, $title, $footer) |
Send isolated PIX button (v2.4.0+) |
sendWhatsappList($number, $title, $description, $buttonText, $sections, $footerText) |
Send list message (v2.4.0+) |
sendWhatsappCarousel($number, $message, $cards) |
Send product carousel (v2.4.0+) |
sendWhatsappMessage($number, $type, $content, $options) |
Generic send method |
hasWhatsappInstance() |
Check if an instance is available |
getConnectedWhatsappInstances() |
Get all connected instances |
Customizing the Instance Selection
Override getWhatsappInstanceId() to use a specific instance:
4. Interactive Messages (Buttons / List / CTA / PIX / Carousel)
⚠️ Requires Evolution API v2.4.0 or later. Older API versions will reject these endpoints.
The plugin exposes five interactive message types via the Whatsapp facade, the CanSendWhatsappMessage trait, and the SendWhatsappMessageAction (which renders the correct form fields for each type automatically).
| Type | Endpoint | Constraints |
|---|---|---|
BUTTONS (Reply) |
POST /message/sendButtons |
Max 3 reply buttons. Cannot be mixed with PIX. |
CTA |
POST /message/sendButtons |
Max 2 buttons (url / call / copy). Cannot be mixed with reply or PIX. |
PIX |
POST /message/sendButtons |
Exactly 1 payment_info button. Must be isolated. |
LIST |
POST /message/sendList |
Uses legacy listMessage with SINGLE_SELECT (renders on WhatsApp Web/Desktop). |
CAROUSEL |
POST /message/sendCarousel |
Multi-card. Single-card-without-image falls back to nativeFlowMessage for iOS. |
Reply Buttons
CTA Buttons (URL / Call / Copy)
PIX Button
List Message
Carousel
Using the Trait
Generic send() Helper
Filament Action UI
The bundled SendWhatsappMessageAction automatically renders the right form fields per interactive type (repeater for reply buttons capped at 3, CTA capped at 2, PIX block with key type + receiver, list with nested sections/rows repeaters, and per-card carousel repeater with its own button list). Just add it to your panel — no extra configuration required.
Storage Support
The plugin supports both local and cloud storage (S3, etc.) for media files.
Configuration
Using Different Disks
Webhooks
The plugin includes a webhook endpoint to receive events from Evolution API.
Available Events
| Event | Description |
|---|---|
APPLICATION_STARTUP |
API started |
QRCODE_UPDATED |
New QR code generated |
CONNECTION_UPDATE |
Connection status changed |
NEW_TOKEN |
New authentication token |
SEND_MESSAGE |
Message sent |
PRESENCE_UPDATE |
Contact online/offline |
MESSAGES_UPSERT |
New message received |
Webhook URL
Configure this URL in your Evolution API instance settings:
Note: The webhook route is
/api/webhooks/evolutionby default. Make sure yourEVOLUTION_WEBHOOK_URLenv variable matches this path.
Multi-Tenancy
The plugin supports Filament's native multi-tenancy. When enabled:
- All tables include the tenant foreign key
- Models automatically scope queries by tenant
- Records are auto-assigned to current tenant on creation
Configuration
Edit the config/filament-evolution.php file:
Using the Evolution Client Directly
For advanced use cases, you can use the Evolution client directly:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Wallace Martins
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-whatsapp-conector with dependencies
filament/filament Version ^5.0
illuminate/contracts Version ^11.0|^12.0
spatie/laravel-data Version ^4.0
spatie/laravel-package-tools Version ^1.16