shiroamada/waha-laravel-notification
Composer 安装命令:
composer require shiroamada/waha-laravel-notification
包简介
WAHA Notifications channel for Laravel 11 and Above
关键字:
README 文档
README
This package makes it easy to send notifications using https://waha.devlike.pro/ with Laravel 11+.
Code Reference from laravel-notification-channels/smsc-ru
Contents
Installation
You can install the package via composer:
composer require shiroamada/waha-laravel-notification
Then you must install the service provider:
// config/app.php 'providers' => [ ... NotificationChannels\Waha\WahaServiceProvider::class, ],
Setting up the WAHA service
Add your waha instanceId and token to your config/services.php:
// config/services.php ... 'waha' => [ 'apiUrl' => env('WAHA_API_URL'), 'sessionId' => env('WAHA_SESSION_ID'), 'token' => env('WAHA_TOKEN'), 'isMalaysiaMode' => env('WAHA_MALAYSIA_MODE') ?? 0, 'isEnable' => env('WAHA_ENABLE') ?? 0, 'isDebug' => env('WAHA_DEBUG_ENABLE') ?? 0, 'debugReceiveNumber' => env('WAHA_DEBUG_RECEIVE_NUMBER'), ], ...
Usage
You can use the channel in your via() method inside the notification:
use Illuminate\Notifications\Notification; use NotificationChannels\Waha\WahaMessage; use NotificationChannels\Waha\WahaChannel; class AccountApproved extends Notification { public function via($notifiable) { return [WahaChannel::class]; } public function toWaha($notifiable) { return WahaMessage::create("Task #{$notifiable->id} is complete!"); } }
In your notifiable model, make sure to include a routeNotificationForWaha() method, which return the phone number.
public function routeNotificationForWaha() { return $this->mobile; //depend what is your db field }
Available methods
content(): Set a content of the notification message.
sendAt(): Set a time for scheduling the notification message.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Security
If you discover any security related issues, please use the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The Apache License Version 2.0. Please see License File for more information.
shiroamada/waha-laravel-notification 适用场景与选型建议
shiroamada/waha-laravel-notification 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 197 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 05 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「notifications」 「laravel」 「waha」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 shiroamada/waha-laravel-notification 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 shiroamada/waha-laravel-notification 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 shiroamada/waha-laravel-notification 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova package that adds a notification feed in your Nova app.
An opinionated Laravel package for interacting with WAHA API
Captures outgoing SMS notifications
Laravel SDK for WAHA with multi-host, optional DB pinning, and OpenAPI generated client
Alfabank REST API integration
Laravel package to send notifications when some exceptions are thrown.
统计信息
- 总下载量: 197
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-22