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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-whatsapp-conector

Filament Evolution - WhatsApp Connector

Latest Version on Packagist Total Downloads

A Filament v5 plugin for WhatsApp integration using Evolution API v2.

Features

Screenshots

📸 Click to view screenshots | | | |:---:|:---:| | ![Screenshot 1](docs/images/screenshot-01.png) | ![Screenshot 2](docs/images/screenshot-02.png) | | ![Screenshot 3](docs/images/screenshot-03.png) | ![Screenshot 4](docs/images/screenshot-04.png) | | ![Screenshot 5](docs/images/screenshot-05.png) | ![Screenshot 6](docs/images/screenshot-06.png) | | ![Screenshot 7](docs/images/screenshot-07.png) | ![Screenshot 8](docs/images/screenshot-08.png) |

Requirements


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

  1. Navigate to WhatsApp > Instances
  2. Click New Instance
  3. Fill in the instance name and phone number
  4. Configure settings (reject calls, always online, etc.)
  5. Click Save - the QR Code modal will open automatically
  6. 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:

  1. Filament Action - For UI-based sending in tables, pages and widgets
  2. Whatsapp Facade - For quick message sending anywhere
  3. 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/evolution by default. Make sure your EVOLUTION_WEBHOOK_URL env variable matches this path.


Multi-Tenancy

The plugin supports Filament's native multi-tenancy. When enabled:

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

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-whatsapp-conector with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wallacemartinss/filament-whatsapp-conector contains the following files

Loading the files please wait ...