bhanwarpsrathore/laravel-notification-twilio-whatsapp
最新稳定版本:v1.1.0
Composer 安装命令:
composer require bhanwarpsrathore/laravel-notification-twilio-whatsapp
包简介
Twilio WhatsApp notifications channel for Laravel
README 文档
README
This package makes it easy to send Twilio WhatsApp notifications with 8.x, 9.x & 10.x
Requirements
- PHP 8.1 or later.
Installation
Install it using Composer:
composer require bhanwarpsrathore/laravel-notification-twilio-whatsapp
Configuration
Add your Twilio Account SID, Auth Token, and From Number to your .env:
TWILIO_USERNAME=XYZ # optional when using auth token TWILIO_PASSWORD=ZYX # optional when using auth token TWILIO_AUTH_TOKEN=ABCD # optional when using username and password TWILIO_ACCOUNT_SID=1234 # always required TWILIO_WHATSAPP_FROM=+11111111 # always required
Advanced configuration
You can optionally publish the config file with:
php artisan vendor:publish --provider="TwilioWhatsApp\TwilioWhatsAppProvider" --tag="config"
Suppressing specific errors or all errors
Publish the config using the above command, and edit the ignored_error_codes array. You can get the list of
exception codes from the documentation.
If you want to suppress all errors, you can set the option to ['*']. The errors will not be logged.
License
MIT license. Please see LICENSE.md for more info.
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-17