定制 dmamontov/symfony-phpcron 二次开发

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

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

dmamontov/symfony-phpcron

最新稳定版本:2.0.0

Composer 安装命令:

composer create-project dmamontov/symfony-phpcron

包简介

Daemon to run tasks scheduled cron written in php, works similar to crontab.

README 文档

README

Latest Stable Version License

Symfony PHPCron

This package can run scheduled tasks defined in a crontab file.

It can parse a file in the crontab format that defines the times and the command lines strings of programs that are scheduled to run regularly.

The package can start parallel processes to run the scheduled tasks when time comes.

Requirements

  • PHP version ~5.3.3.
  • Module installed "pcntl" and "posix".
  • All functions "pcntl" and "posix" removed from the directive "disable_functions".
  • Symfony Console ~2.6
  • Symfony Process ~2.6
  • Symfony FileSystem ~2.6
  • Symfony Finder ~2.6

Installation

  1. Install composer

  2. Follow in the project folder:

composer require dmamontov/symfony-phpcron ~2.0.0

In config composer.json your project will be added to the library dmamontov/symfony-phpcron, who settled in the folder vendor/. In the absence of a config file or folder with vendors they will be created.

If before your project is not used composer, connect the startup file vendors. To do this, enter the code in the project:

require 'path/to/vendor/autoload.php';

Valid parameters

  • execute [-f] [-d]
  • cancel [-f]
  • import
  • status
  • help

Example of work

<?
require_once 'vendor/autoload.php';
use Slobel\PHPCron\Command\Application;

$cron = new Application();
$cron->run();
?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-05-29