phynix/notify 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

phynix/notify

Composer 安装命令:

composer require phynix/notify

包简介

Notification Package

README 文档

README

SEND NOTIFICATIONS AS EMAIL, SMS OR FCM

Credentials are required so also there are some dependencies not included in this package. Please, also not that this is not a complete application and quite alont of more packages injection into this.

Sending Email: requires:

$to    = "david_chris@yahoo.com";
$subject = "Hello Testing Email Sender";
$message = "Testing Email Sender for application for the system we are sending for the library";
(new EmailService())->run($to, $subject, $message);

Sending Instant Email: requires:

$to    = "david_chris@yahoo.com";
$subject = "Hello Testing Email Sender";
$message = "Testing Email Sender for application for the system we are sending for the library";
(new EmailService())->runInstant($to, $subject, $message);

Sending SMS requires:

$to    = "+447930152290";
$sms   = "Testing the new system for the applications Testing Email Sender for application for the system we are sending for the library Sender for application for the system we are sending for the library";
(new SmsService())->run($to, $sms);
(new SmsService())->runInstant($to, $sms);

Sending FCM requires:

$receiver    = "-CkWgJ8jsAxoM";
$message = "Testing Email Sender for application for the system we are sending for the library";
(new FcmService())->run($receiver, $message);

running cron job

Registering in Kernel:

Under Commands:

protected $commands = [
    'Notify\App\Command\SmsSender',
    'Notify\App\Command\EmailSender',
    'Notify\App\Command\FcmSender',
];

protected function schedule(Schedule $schedule)
{
    $schedule->command('notify:sms')->everyMinute();
    $schedule->command('notify:email')->everyMinute();
    $schedule->command('notify:fcm')->everyMinute();
}
.ENV keys:

PHYNIX_EMAIL_SENDER="Company Ltd<send@phynixmedia.co.uk>"
PHYNIX_EMAIL_API=https://fault/US-Ea
PHYNIX_SMS_API=https://wnj0nvhmyClo
PHYNIX_FCM_SENDER_ID=AAAA1Sr-UqPOjqB5gazX9I8b
PHYNIX_SEND_COUNTER=10
PHYNIX_SENDER_CODE=CompanyL

Run migrations


php artisan migrate --path=/vendor/phynix/notify/src/database/migrations/2022_06_23_140303_create_log_emails_table.php
php artisan migrate --path=/vendor/phynix/notify/src/database/migrations/2022_06_23_140433_create_log_fcm_table.php
php artisan migrate --path=/vendor/phynix/notify/src/database/migrations/2022_06_23_140433_create_log_sms_table.php

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固