定制 apolinux/msgscheduler 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

apolinux/msgscheduler

Composer 安装命令:

composer require apolinux/msgscheduler

包简介

Message Scheduler Dispatcher

README 文档

README

Dispatchs messages scheduled to specific day and hour.

The application allows to program delivery of messages:

  • daily
  • weekly each x weekday
  • each x days
  • at specific hour and minute

The dispatcher is user-defined.

The dispatcher allows to define :

  • fixed text
  • fixed message obtained from another table
  • get variable message obtained from other table as a message list

TESTING

To run tests read phpunit.xml and modify DB_USER, DB_PASSWD and DB_DSN according to your needs.

REQUIREMENTS

This app requires connection to PDO compatible Database like LiteSQL or MySQL.

SCHEDULER

In bin directory there is a example script that calls the scheduler.

The scheduler must run each hour, depending on platform the command varies. In Linux environments add this lines to crontab, using command

crontab -e

`` # runs dispatcher each hour

0 * * * * PATH_BASE_APP/bin/dispatcher.php &> /dev/null ``

TODO

  • Parametrize messages table

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-04-11