2017 © Pedro Peláez
 

library symfony-command-cron

Runs Symfony Commands based on cron expressions

image

aeolun/symfony-command-cron

Runs Symfony Commands based on cron expressions

  • Wednesday, July 26, 2017
  • by Aeolun
  • Repository
  • 0 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Symfony Command Cron

build success code quality Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

This package functions almost the same as a normal Symfony console application, except that the commands to run are not determined manually (e.g. command line parameter), but by a file with a cron syntax that can be saved with your application in the repository., (*2)

The main reason for creating it is the need for some mechanism to easily update and track changes to cron scripts over multiple servers., (*3)

Requirements

  • PHP >=5.4

Usage

Your code would look something like this (not much different from a normaly Symfony Console application, except the constructor takes a cron file to work with., (*4)

$application = new CronApplication(APPPATH.'config/background.cron');
$application->add(new \Vendor\Command\DoStuff());
$application->add(new \Vendor\Command\DoImportantStuff());
$application->runDueCommands();

The cron file syntax is simple, and follows the accepted pattern. Complete description of the patterns available can be found here: https://github.com/mtdowling/cron-expression, (*5)

* * * 4 * stuff:do
*/3 * * * * stuff:important:do

Install

Symfony Command Cron can be installed through composer:, (*6)

composer require aeolun/symfony-command-cron:dev-master

The Versions

26/07 2017

dev-master

9999999-dev

Runs Symfony Commands based on cron expressions

  Sources   Download

BSD

The Requires

 

The Development Requires

03/07 2017

0.1.1

0.1.1.0

Runs Symfony Commands based on cron expressions

  Sources   Download

BSD

The Requires

 

The Development Requires

29/07 2014

0.1.0

0.1.0.0

Runs Symfony Commands based on cron expressions

  Sources   Download

BSD

The Requires

 

The Development Requires