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
phynix/notify 适用场景与选型建议
phynix/notify 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 399 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 07 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 phynix/notify 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 phynix/notify 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 399
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-09