承接 kangkoding/laravel-notif-waha 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kangkoding/laravel-notif-waha

最新稳定版本:1.0.0

Composer 安装命令:

composer require kangkoding/laravel-notif-waha

包简介

WAHA Notifications channel untuk laravel versi 12

README 文档

README

Latest Version on Packagist Software License Build Status StyleCI Quality Score Code Coverage Total Downloads

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 kangkoding-nub/waha-laravel-notification

Then you must install the service provider:

// bootstrap/providers.php
[
    ...
    NotificationChannels\Waha\WahaServiceProvider::class,
],

Setting up the WAHA service

Add your waha instanceId and apiKey to your config/services.php:

// config/services.php
...
'waha' => [
    'apiUrl' => env('WAHA_API_URL'),
    'sessionId' => env('WAHA_SESSION_ID'),
    'apiKey' => env('WAHA_API_KEY'),
    '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.

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固