承接 tomatophp/filament-twilio 相关项目开发

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

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

tomatophp/filament-twilio

最新稳定版本:v1.0.1

Composer 安装命令:

composer require tomatophp/filament-twilio

包简介

Send Whatsapp messages using Twilio and native filament Notification Facade class

README 文档

README

Screenshot

Filament Twilio

Latest Stable Version License Downloads

Send Whatsapp messages using Twilio and native filament Notification Facade class

Screenshots

Message

Installation

composer require tomatophp/filament-twilio

Using

first of all you need to add this variables to your .env file

TWILIO_SID=
TWILIO_TOKEN=
TWILIO_SENDER_NUMBER=

then clear you cache

php artisan config:cache

now on your User model add this trait

use TomatoPHP\FilamentTwilio\Traits\InteractsWithTwilioWhatsapp;

class User extends Authenticatable
{
    use InteractsWithTwilioWhatsapp;
}

now you are ready to use the notification


\Filament\Notifications\Notification::make()
    ->body('Your Message You Like To Send Here!')
    ->sendToTwilioWhatsapp(
        user: $user,
        mediaURL: "https://images.unsplash.com/photo-1545093149-618ce3bcf49d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=668&q=80"
    );

or you can use it from user model direct

$user->notifyTwilioWhatsapp(
    message: 'Your Message You Like To Send Here!',
    mediaURL: "https://images.unsplash.com/photo-1545093149-618ce3bcf49d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=668&q=80"
);

Publish Assets

you can publish config file by use this command

php artisan vendor:publish --tag="filament-twilio-config"

Other Filament Packages

Checkout our Awesome TomatoPHP

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固