blomstra/test-notification-dispatcher 问题修复 & 功能扩展

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

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

blomstra/test-notification-dispatcher

最新稳定版本:0.1.0

Composer 安装命令:

composer require blomstra/test-notification-dispatcher

包简介

CLI to dispatch notifications for development/testing

关键字:

README 文档

README

License Latest Stable Version Total Downloads

A Flarum extension. CLI to dispatch notifications for development/testing.

Run php flarum help testnotifications to get the list of available options.

This extension should probably never be executed in production. It deletes all the test user's web notifications and might have side effects on other user's notifications if the same event concerns multiple users.

The command works by finding events that have previously triggered the given notifications, and triggering the notifications again. It results in the web notifications being boosted back to the top and emails being sent again. The date of the notifications will be inaccurate as it will be reset to the current time.

If more events are found than the given limit (5 by default), then the events to trigger notifications for will pe picked at random.

The notifications are sent to the given test user which can be customized via command parameters. By default, the user with ID 1 will be used.

The following events/notifications are supported:

  • flarum/core: Discussion renamed (picks discussions authored by the test user that contain an event post for rename, no matter who renamed it)
  • flarum/suspend: User suspended (triggers once for the selected test user if they are suspended)
  • flarum/suspend: User unsuspended (triggers once for the selected test user if they are not suspended)
  • flarum/subscriptions: New post in followed discussion (will always use the last post of any discussion with one reply or more, even if all the replies are from the test user as well)
  • flarum/mentions: Post or user mention (any post not created by the test user nor a deleted user)
  • fof/follow-tags: New post in lurked tag (same constraints as posts in followed discussions)
  • fof/follow-tags: New discussion in followed or lurked tag (any discussion not created by the test user)

Installation

Install with composer:

composer require blomstra/test-notification-dispatcher:"*"

Updating

composer update blomstra/test-notification-dispatcher
php flarum migrate
php flarum cache:clear

Links

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固