g4/cron
最新稳定版本:0.2.0
Composer 安装命令:
composer require g4/cron
包简介
g4 cron like parser with ability to parse expressions with resolution in seconds - based on PHP Cron Expression Parser
README 文档
README
Cron - G4 Cron like parser with ability to parse expressions with resolution in seconds - based on PHP Cron Expression Parser
Install
Using Composer and Packagist
composer require g4/cron
require_once 'vendor/autoload.php';
$expression = \G4\Cron\CronExpression::factory('*/3 * * * * * *');
echo date('Y-m-d H:i:s'), ' = ', $expression->getNextRunDate()->format('Y-m-d H:i:s'), PHP_EOL;
echo date('Y-m-d H:i:s'), ' = ', $expression->getPreviousRunDate()->format('Y-m-d H:i:s'), PHP_EOL;
Development
Install dependencies
$ make install
Run tests
$ make test
License
(The MIT License) see LICENSE file for details...
统计信息
- 总下载量: 69.49k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 2
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-06-07