承接 dantaylorseo/laravel-maytapi-channel 相关项目开发

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

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

dantaylorseo/laravel-maytapi-channel

最新稳定版本:v1.0.11

Composer 安装命令:

composer require dantaylorseo/laravel-maytapi-channel

包简介

This is my package laravel-maytapi-channel

README 文档

README

This package provides a notification channel for Laravel that sends WhatsApp messages using the Maytapi API.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads Packagist License

Installation

You can install the package via composer:

composer require dantaylorseo/laravel-maytapi-channel

You can publish the config file with:

php artisan vendor:publish --tag="laravel-maytapi-channel-config"

This is the contents of the published config file:

return [
    'api_key' => env('MAYTAPI_API_KEY'),
    'product_id' => env('MAYTAPI_PRODUCT_ID'),
    'phone_id' => env('MAYTAPI_PHONE_ID'),
    'send_to_channel' => env('MAYTAPI_SEND_TO_CHANNEL', false), // if set to true, messages will be sent to the channel instead of the user
    'group_id' => env('MAYTAPI_GROUP_ID'), // if the message is being sent to a group, this is the group ID
];

Usage

This channel uses the toMail() method on the notification class to determine the outgoing message. line() and action() methods are supported.

To set the phone number to send the message to, add the routeNotificationForMaytapi method to your Notifiable model.

public function routeNotificationForMaytapi()
{
    return $this->phone_number; // in the format 447123456789 (country code followed by the number, no leading 0, no spaces)
}

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固