PHPackages                             cron/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cron/cron-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

cron/cron-bundle
================

Symfony cron

3.1.1(2y ago)1901.5M↓10.7%75[3 PRs](https://github.com/Cron/Symfony-Bundle/pulls)2MITPHPPHP &gt;=8.1

Since Feb 23Pushed 1y ago8 watchersCompare

[ Source](https://github.com/Cron/Symfony-Bundle)[ Packagist](https://packagist.org/packages/cron/cron-bundle)[ RSS](/packages/cron-cron-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (16)Versions (44)Used By (2)

Cron Bundle
===========

[](#cron-bundle)

[![Packagist](https://camo.githubusercontent.com/177774c7e5f6e00df21a01894d0ce7d699dc2b1c938148bb146def6a327f554b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63726f6e2f63726f6e2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cron/cron-bundle)[![Build status](https://camo.githubusercontent.com/17a824f8f460c5ecb8b15fb6615f82499341b2d3ebbf40986e5253193cdb2bac/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63726f6e2f73796d666f6e792d62756e646c652f63692e79616d6c3f7374796c653d666c61742d737175617265)](https://github.com/cron/symfony-bundle/actions/workflows/ci.yml)[![Packagist](https://camo.githubusercontent.com/767225113d0a1c157b91544a47a4e59849955214a1ffc1f1d94589fcfd6fcb62/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f43726f6e2f43726f6e2d42756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cron/cron-bundle)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

[Cron](https://github.com/Cron/Cron) integration for symfony.

Installation
------------

[](#installation)

Installing this bundle can be done through these simple steps:

1. Add the bundle to your project as a composer dependency:

```
composer require cron/cron-bundle
```

2. Add the bundle to your application kernel:

```
// app/AppKernel.php
public function registerBundles()
{
    // ...
    $bundle = array(
        // ...
        new Cron\CronBundle\CronCronBundle(),
    );
    // ...

    return $bundle;
}
```

3. Update your DB schema

```
bin/console make:migration
bin/console doctrine:migrations:migrate
```

4. Start using the bundle:

```
bin/console cron:list
bin/console cron:run
```

5. To run your cron jobs automatically, add the following line to your (or whomever's) crontab:

```
* * * * * /path/to/symfony/install/app/console cron:run 1>> /dev/null 2>&1

```

**OR**If you don't have a dedicated cron daemon (e.g. in Heroku), you can use:

```
bin/console cron:start # will run in background mode, use --blocking to run in foreground
bin/console cron:stop # will stop the background cron daemon
```

Available commands
------------------

[](#available-commands)

### list

[](#list)

```
bin/console cron:list
```

Show a list of all jobs. Job names are show with `[x]` if they are enabled and `[ ]` otherwise.

### create

[](#create)

```
bin/console cron:create
```

Create a new job.

### delete

[](#delete)

```
bin/console cron:delete _jobName_
```

Delete a job. For your own protection, the job must be disabled first.

### enable

[](#enable)

```
bin/console cron:enable _jobName_
```

Enable a job.

### disable

[](#disable)

```
bin/console cron:disable _jobName_
```

Disable a job.

### run

[](#run)

```
bin/console cron:run [--force] [job]
```

> which we borrowed from Symfony. Make sure to check out [php-cs-fixer](https://github.com/fabpot/PHP-CS-Fixer) as this will help you a lot. Please note that `--force` forces the job to be executed (even if disabled) based on the job schedule

### run now, independent of the job schedule

[](#run-now-independent-of-the-job-schedule)

```
bin/console cron:run --schedule_now [--force] job
```

### run in non-cli contexts (i.e. [from a controller](https://symfony.com/doc/current/console/command_in_controller.html))

[](#run-in-non-cli-contexts-ie-from-a-controller)

```
bin/console cron:run --script-name='bin/console'
```

### start

[](#start)

```
bin/console cron:start [--blocking]
```

Start the cron as a daemon. By default it forks itself to the background and suppresses any output. The `--blocking` option will keep it in the foreground and will display output. This is useful when you don't have a dedicated cron daemon (e.g. on Heroku).

### stop

[](#stop)

```
bin/console cron:stop
```

Stops the background cron daemon started with `cron:start`. This is not applicable when the daemon was started with `--blocking`.

If you would like to help, take a look at the [list of issues](http://github.com/Cron/CronBundle/issues).

Requirements
------------

[](#requirements)

PHP 5.5.9 or above

Author and contributors
-----------------------

[](#author-and-contributors)

Dries De Peuter -  -

See also the list of [contributors](https://github.com/Cron/CronBundle/contributors) who participated in this project.

License
-------

[](#license)

CronBundle is licensed under the MIT license.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity59

Moderate usage in the ecosystem

Community34

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 58.9% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~84 days

Recently: every ~22 days

Total

41

Last Release

751d ago

Major Versions

1.x-dev → 2.0.02018-06-30

2.10.5 → 3.0.02024-01-03

PHP version history (5 changes)1.0.0PHP &gt;=5.3.0

1.2.1PHP &gt;=5.5.0

2.0.2PHP &gt;=5.5.9

2.4.0PHP &gt;=7.2

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/879864?v=4)[Dries De Peuter](/maintainers/NoUseFreak)[@NoUseFreak](https://github.com/NoUseFreak)

---

Top Contributors

[![NoUseFreak](https://avatars.githubusercontent.com/u/879864?v=4)](https://github.com/NoUseFreak "NoUseFreak (63 commits)")[![akalineskou](https://avatars.githubusercontent.com/u/3526365?v=4)](https://github.com/akalineskou "akalineskou (7 commits)")[![herman-aka-wouter](https://avatars.githubusercontent.com/u/40226924?v=4)](https://github.com/herman-aka-wouter "herman-aka-wouter (4 commits)")[![lokhman](https://avatars.githubusercontent.com/u/7714105?v=4)](https://github.com/lokhman "lokhman (2 commits)")[![Bukashk0zzz](https://avatars.githubusercontent.com/u/1908342?v=4)](https://github.com/Bukashk0zzz "Bukashk0zzz (2 commits)")[![gun-romainflamant](https://avatars.githubusercontent.com/u/60883897?v=4)](https://github.com/gun-romainflamant "gun-romainflamant (2 commits)")[![lexf](https://avatars.githubusercontent.com/u/3609979?v=4)](https://github.com/lexf "lexf (2 commits)")[![nastia-vinnytska](https://avatars.githubusercontent.com/u/8004735?v=4)](https://github.com/nastia-vinnytska "nastia-vinnytska (2 commits)")[![weerdenburg](https://avatars.githubusercontent.com/u/1528698?v=4)](https://github.com/weerdenburg "weerdenburg (2 commits)")[![dominikmank](https://avatars.githubusercontent.com/u/7710527?v=4)](https://github.com/dominikmank "dominikmank (1 commits)")[![ianitsky](https://avatars.githubusercontent.com/u/163327?v=4)](https://github.com/ianitsky "ianitsky (1 commits)")[![k0d3r1s](https://avatars.githubusercontent.com/u/38725938?v=4)](https://github.com/k0d3r1s "k0d3r1s (1 commits)")[![krisix](https://avatars.githubusercontent.com/u/680001?v=4)](https://github.com/krisix "krisix (1 commits)")[![kroshilin](https://avatars.githubusercontent.com/u/10268995?v=4)](https://github.com/kroshilin "kroshilin (1 commits)")[![vstanchev](https://avatars.githubusercontent.com/u/9103789?v=4)](https://github.com/vstanchev "vstanchev (1 commits)")[![DerDu](https://avatars.githubusercontent.com/u/616953?v=4)](https://github.com/DerDu "DerDu (1 commits)")[![michnaadam33](https://avatars.githubusercontent.com/u/8986842?v=4)](https://github.com/michnaadam33 "michnaadam33 (1 commits)")[![mrardon](https://avatars.githubusercontent.com/u/634533?v=4)](https://github.com/mrardon "mrardon (1 commits)")[![msamec](https://avatars.githubusercontent.com/u/4154034?v=4)](https://github.com/msamec "msamec (1 commits)")[![mvadzim](https://avatars.githubusercontent.com/u/14044901?v=4)](https://github.com/mvadzim "mvadzim (1 commits)")

---

Tags

hacktoberfestphpsymfonysymfony-bundle

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)

PHPackages © 2026

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