maikuolan/cronable
Composer 安装命令:
composer require maikuolan/cronable
包简介
Cronable is a simple script that allows auto-updating CIDRAM and phpMussel via cronjobs.
README 文档
README
Cronable.
Cronable is a simple script that allows auto-updating and
via cronjobs.
How to install:
You can download the file containing the class, Cronable.php, directly from this repository, or, if you'd prefer, you can install it using Composer:
composer require maikuolan/cronable
Cronable is a stand-alone class that has no dependencies other than PHP, the cURL extension of PHP, and something to trigger it at the desired interval (generally, a cron manager of some description), and so, downloading it is all there really is to "installing" it.
How to use:
For auto-updating CIDRAM or phpMussel with Cronable, front-end management will need to be enabled. Create a new account from the accounts page for Cronable to use, and set the permissions for this new account to "Cronable" (the "Cronable" permissions type is intended only for Cronable, and shouldn't be used for anything else). Take note of the username and password that you choose for this new account, because you'll need it in a moment.
Next, check the examples.php file, and using the instructions and examples given in the file, create your update tasks as per necessary.
Using your cron manager or other triggering mechanism, create a new cron task with the desired update interval (please don't choose an excessively short interval, as the inbound requests received by the servers containing the updates may perceive this as abuse, and you may blocked by them as a consequence; checking for updates once a day should be more than enough; most updates tend to be released once per week or once per month anyhow), pointing to the file containing your Cronable update tasks.
That's everything. :-)
Other information:
Licensing:
For support:
Please use the issues page of this repository.
Last Updated: 21 November 2021 (2021.11.21).
maikuolan/cronable 适用场景与选型建议
maikuolan/cronable 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 28 次下载、GitHub Stars 达 2, 最近一次更新时间为 2017 年 10 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「cron」 「update」 「updating」 「auto-update」 「cronjobs」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 maikuolan/cronable 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 maikuolan/cronable 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 maikuolan/cronable 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Checks if any composer packages needs to be updated.
Symfony bundle to monitor and execute commands
Scheduling extension for Yii2 framework
Monitoring for scheduled jobs
Composer plugin for running post-install/post-update scripts of your project's dependencies
Temporal frequency library
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-29