PHPackages                             greg-doak/cron-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. greg-doak/cron-bundle

ActiveSymfony-bundle

greg-doak/cron-bundle
=====================

This bundle provides cron management.

020PHP

Since Mar 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/GregDoak/CronBundle)[ Packagist](https://packagist.org/packages/greg-doak/cron-bundle)[ RSS](/packages/greg-doak-cron-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

CronBundle
==========

[](#cronbundle)

This bundle provides cron management utilities for your Symfony Project

### Installation

[](#installation)

Add greg-doak/cron-bundle to your composer.json

```
$ composer require greg-doak/cron-bundle
```

Register the bundle in config/bundles.php

```
return [
    // ...
    GregDoak\CronBundle\GregDoakCronBundle::class => ['all' => true],
];
```

Create the database tables

```
$ php bin/console doctrine:migrations:diff
$ php bin/console doctrine:migrations:migrate
```

Or

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

Create your first task

```
$ php bin/console cron:create
```

### Configuration

[](#configuration)

Add the scheduler to your cron

```
*/5 * * * * php /root/to/your/application/bin/console cron:run:scheduled
```

Or alternatively to run the scheduler on page request Configure services.yaml

```
parameters:
    // ...
    gregdoak.cron.run_on_request: true
```

This can have performance issues so is recommended to run on Development environments only

### Usage

[](#usage)

Run a single task, you will be prompted for which task to run

```
$ php bin/console cron:run:single
```

Kill a running task, you will be prompted for the running task

```
$ php bin/console cron:kill
```

Update a task

```
$ php bin/console cron:update
```

### Notes

[](#notes)

There are 3 database tables created:

**cron\_jobs** - A record is created whenever the scheduler or single task is run and ensures tasks cannot be ran simultaneously. It also records a start and end time to measure performance of the entire job

**cron\_job\_tasks** - Each record consists of a single task, running tasks will be reserved by recording a cron\_job\_id

**cron\_job\_logs** - A log is created for each task to record the output, exit code, start and end times

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f08b3b7c596cbac8c6f49c4340df08f0aa73dab04732640b947ad30ab5e6beb?d=identicon)[GregDoak](/maintainers/GregDoak)

---

Tags

cron-jobsschedulesymfony-flexsymfony4

### Embed Badge

![Health badge](/badges/greg-doak-cron-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/greg-doak-cron-bundle/health.svg)](https://phpackages.com/packages/greg-doak-cron-bundle)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
