承接 ordinalm/cron-todo-txt 相关项目开发

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

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

ordinalm/cron-todo-txt

Composer 安装命令:

composer require ordinalm/cron-todo-txt

包简介

README 文档

README

todo.txt cron utilities

Requirements

Installation

mkdir -p ~/.todo.actions.d
cd ~/.todo.actions.d
ln -s /path/to/this/project/bin/schedule

Usage

Scheduling a task

Add the task to your todo.txt as normal and then use

todo-txt schedule add <n> <date to schedule to> (<optional repeat>)

e.g.

todo-txt schedule add 1 tomorrow 1w

Listing scheduled tasks

todo-txt schedule ls|list (<optional search term>)

Processing the schedule

Run todo-txt schedule process to add any scheduled tasks that should be added right now. It has one possible parameter, live - if this is set it will actually make the changes, otherwise it will just print debug output which is perfectly safe.

Example crontab entry

*/15 * * * * /usr/bin/todo-txt schedule process live >> /home/foo/logs/cron-todo-txt.log 2>&1

to run every 15 minutes and output to /home/foo/logs/cron-todo-txt.log

Repeat file format

<datetime string> <todo> (repeat|rec:<interval>)

Blank lines and ones starting with # are ignored.

The datetime string can be anything parsed by PHP's strtotime, but must not have any spaces in it. ISO-8601 datetimes are ideal and what it will use when creating recurring tasks - see below. It can include a time as well.

Everything in the <todo> will be added as a task with todo-txt, including priorities, contexts, and groups.

With no repeat or rec attribute, the todo will be removed. If there is one it will attempt to parse the value as per https://www.php.net/manual/en/dateinterval.construct.php - it will convert case and add "P" at the start if not present, so should pick up simple cases like "5d" (every 5 days) or "1y" (every year). It will then add a new entry in the repeat file

e.g.

# This is a comment line

2024-06-13 Write cron-todo-txt module
2024-06-14 Fix bugs in it repeat:1d

In case of error in the file

If the code is unable to parse a date or line it will output an error and also comment out the line concerned (if run with live). It will process any other lines as usual.

TODO

  • Convert to have functions running as todo-txt addons
  • Proper tests
  • Structs for the scheduled file
  • Split out the ToDoTxt* classes into a separate module for handling todo-txt files in PHP.
  • A command for users to delete repeated tasks (though can just edit)
  • A command to add repeated tasks directly, not just from the existing task list
  • Editor for schedule file

ordinalm/cron-todo-txt 适用场景与选型建议

ordinalm/cron-todo-txt 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 05 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 ordinalm/cron-todo-txt 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ordinalm/cron-todo-txt 我们能提供哪些服务?
定制开发 / 二次开发

基于 ordinalm/cron-todo-txt 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-05-29