2017 © Pedro Peláez
 

library cron-manager

Cron Manager for Symfony3

image

kempfe/cron-manager

Cron Manager for Symfony3

  • Tuesday, August 1, 2017
  • by kempfe
  • Repository
  • 1 Watchers
  • 0 Stars
  • 37 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Cron Manager

Cron Manager for Symfony 3 Create managable cron tasks for your symfony project, (*1)

Installing

1. Add the dependency to your project:, (*2)

composer require kempfe/cron-manager

2. Add package to your AppKernel.php, (*3)

<?php

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            new Symfony\Bundle\MonologBundle\MonologBundle(),
            new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
            new Symfony\Bundle\AsseticBundle\AsseticBundle(),
            new CronManager\CronManager()
        ];
        ...

3. Update your database, (*4)

php bin/console doctrine:schema:update --force

This Package is based on mtdowling/cron-expression Cron Expression Parser

Creating a Cron Task

  1. Create a Symfony Command like described here http://symfony.com/doc/master/components/console.html, (*5)

  2. Create a new database entry into cm_cron with fields:, (*6)

    leave the rest of the fields blank, (*7)

Cron Manager Execution

php bin/console cm:run --interval=600 --processCheck=1

Options

  • --interval: Your Linux Cron execution interval - default execution interval is 600 seconds
  • --processCheck: When enabled it checks process id to avoid overlapping executions

The Versions

01/08 2017

dev-master

9999999-dev

Cron Manager for Symfony3

  Sources   Download

GNU

The Requires

 

by Mario Kempf

manager schedule cron

01/08 2017

1.0.7

1.0.7.0

Cron Manager for Symfony3

  Sources   Download

GNU

The Requires

 

by Mario Kempf

manager schedule cron

21/02 2017

1.0.6

1.0.6.0

Cron Manager for Symfony3

  Sources   Download

GNU

The Requires

 

by Mario Kempf

manager schedule cron

21/02 2017

1.0.5

1.0.5.0

Cron Manager for Symfony3

  Sources   Download

GNU

The Requires

 

by Mario Kempf

manager schedule cron

22/12 2016

1.0.4

1.0.4.0

Cron Manager for Symfony3

  Sources   Download

GNU

The Requires

 

by Mario Kempf

manager schedule cron

22/08 2016

1.0.3

1.0.3.0

Cron Manager for Symfony3

  Sources   Download

GNU

The Requires

 

by Mario Kempf

manager schedule cron

10/08 2016

1.0.2

1.0.2.0

Cron Manager for Symfony3

  Sources   Download

GNU

The Requires

 

by Mario Kempf

manager schedule cron

10/08 2016

1.0.1

1.0.1.0

Cron Manager for Symfony3

  Sources   Download

GNU

The Requires

 

by Mario Kempf

manager schedule cron

10/08 2016

1.0.0

1.0.0.0

Cron Manager for Symfony3

  Sources   Download

GNU

The Requires

 

by Mario Kempf

manager schedule cron