jeffersongoncalves/filament-whatsapp-widget
Composer 安装命令:
composer require jeffersongoncalves/filament-whatsapp-widget
包简介
This Filament package provides a simple yet customizable WhatsApp widget for your website. It allows you to easily add a clickable WhatsApp button or floating widget to connect visitors directly with your WhatsApp account. The widget is designed to be easily integrated into your Laravel application
README 文档
README
Filament Whatsapp Widget
This Filament package provides a simple yet customizable WhatsApp widget for your website. It allows you to easily add a clickable WhatsApp button or floating widget to connect visitors directly with your WhatsApp account. The widget is designed to be easily integrated into your Laravel application and is fully customizable to match your website's design.
Requirements
- PHP 8.2 or higher
- Laravel 11.0 or higher
- Filament 5.0
Installation
You can install the package via composer:
composer require jeffersongoncalves/filament-whatsapp-widget
Usage
This package is a Filament wrapper for jeffersongoncalves/laravel-whatsapp-widget.
Publish config file.
php artisan vendor:publish --tag=whatsapp-widget-config php artisan vendor:publish --tag=filament-whatsapp-widget-config
Publish migration file.
php artisan vendor:publish --tag=whatsapp-widget-migrations
Publish assets file.
php artisan vendor:publish --tag=whatsapp-widget-assets php artisan vendor:publish --tag=filament-phone-input-assets
Add in AdminPanelProvider.php
use JeffersonGoncalves\Filament\WhatsappWidget\WhatsappWidgetPlugin; ->plugins([ WhatsappWidgetPlugin::make(), ])
Manual Usage (Optional)
If you want to use the widget on non-Filament pages, add the following templates to your layout:
Head Template
@include('whatsapp-widget::whatsapp-widget-head')
Body Template
@include('whatsapp-widget::whatsapp-widget-body')
Configuration
After publishing the configuration file, you can customize the widget by editing the config/whatsapp-widget.php file:
return [ // Enable or disable audio notification 'audio' => true, // Play audio notification once per day or on every page load 'play_audio_daily' => true, // Filesystem disk for storing agent images 'disk' => env('FILESYSTEM_DISK', 'local'), // Application URL (used for redirection) 'url' => env('APP_URL', 'http://localhost'), // Application name (displayed in the widget) 'name' => env('APP_NAME', 'Laravel App'), // WhatsApp API key (if needed) 'key' => env('WHATSAPP_KEY'), // Widget position on the screen (left or right) 'position' => 'right', ];
And config/filament-whatsapp-widget.php file:
use JeffersonGoncalves\WhatsappWidget\Models\WhatsappAgent; return [ 'whatsapp_agent_resource' => [ 'cluster' => null, 'model' => WhatsappAgent::class, 'should_register_navigation' => true, 'navigation_group' => true, 'navigation_badge' => true, 'navigation_sort' => -1, 'navigation_icon' => 'heroicon-s-chat-bubble-left', 'slug' => 'whatsapp/whatsapp-agent', ], ];
Customization
Translations
This package is translated into several languages:
- Arabic
- Czech
- German
- English
- Spanish
- Persian
- French
- Hebrew
- Indonesian
- Italian
- Japanese
- Dutch
- Polish
- Portuguese
- Portuguese (Brazil)
- Portuguese (Portugal)
- Slovak
- Turkish
You can customize the widget's text by editing the translation files in resources/lang/vendor/filament-whatsapp-widget/.
Position
By default, the widget appears in the bottom-right corner of the page. You can change this by modifying the position value in the config/whatsapp-widget.php file.
Example for left position:
'position' => 'left',
| Default | Open |
|---|---|
![]() |
![]() |
Example for right position:
'position' => 'right',
| Default | Open |
|---|---|
![]() |
![]() |
Redirect Page
When a user clicks on an agent, they are redirected to a temporary page before being sent to WhatsApp. This page can be customized by publishing the package views.
Filament Resource
You can manage your WhatsApp agents using the Filament resource provided by this package.
| List | Create |
|---|---|
![]() |
![]() |
| Edit | View |
|---|---|
![]() |
![]() |
Testing
composer test
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.
jeffersongoncalves/filament-whatsapp-widget 适用场景与选型建议
jeffersongoncalves/filament-whatsapp-widget 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.17k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2025 年 03 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「jeffersongoncalves」 「filament-whatsapp-widget」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jeffersongoncalves/filament-whatsapp-widget 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jeffersongoncalves/filament-whatsapp-widget 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jeffersongoncalves/filament-whatsapp-widget 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The Filament CEP Field is a custom input component designed specifically for Brazilian postal codes (CEP - Código de Endereçamento Postal). This component extends Filament's form capabilities by providing a specialized input field that handles CEP formatting, validation, and automatic address lookup
This Laravel package seamlessly integrates Umami analytics into your Blade templates. Easily track website visits and user engagement directly within your Laravel application, providing valuable insights into your website's performance. This package simplifies the integration process, saving you tim
Complete email management UI for Filament: mail logs with preview, database templates with multi-locale editing, delivery tracking, analytics dashboard, and suppression management.
Enhanced Filament plugin for spatie/laravel-translatable with translation status indicators, locale flags, and improved DX.
Alfabank REST API integration
Laravel package for Accurate Online API integration.
统计信息
- 总下载量: 2.17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 39
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-02









