PHPackages                             troopers/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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. troopers/cron-bundle

AbandonedArchivedSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

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

Symfony bundle for running commands as cron

0.1-beta1(8y ago)634[1 PRs](https://github.com/Troopers/CronBundle/pulls)PHPPHP &gt;=7.0.0

Since Feb 2Pushed 8y ago5 watchersCompare

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

READMEChangelog (1)Dependencies (7)Versions (3)Used By (0)

[![Troopers](https://cloud.githubusercontent.com/assets/618536/18787530/83cf424e-81a3-11e6-8f66-cde3ec5fa82a.png)](https://gitlab.troopers.agency/robinstraub/CronBundle)[![Twitter Follow](https://camo.githubusercontent.com/59166962fed540cd620e598de1fd574503100e00b4bd601804f7ae222378f173/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f74726f6f706572736167656e63792e7376673f7374796c653d736f6369616c266c6162656c3d466f6c6c6f7725323054726f6f70657273)](https://twitter.com/troopersagency)

CronBundle
==========

[](#cronbundle)

Synopsis
--------

[](#synopsis)

This bundle is used to define symfony commands as cron using a yaml configuration file.

Install
-------

[](#install)

run `composer require robinstraub/cron-bundle`

If you are not using flex, registrer the bundle in AppKernel

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Troopers\CronBundle\CronBundle(),
            ...
        );

        return $bundles
```

Configuration
-------------

[](#configuration)

Add your configuration in `config.yml`. See the following example on for how to customize your commands

```
troopers_cron:
    reporting:
        api:
            url: 'http://monitoring_api.local/api/cron'
            api_key: 'myapikey'
            format: form
    tasks:
        - command: 'help'
          schedule: '* * * * *'
          arguments:
            command_name: 'cache:clear'
        - command: 'cache:clear'
          schedule: '@daily'
          arguments:
            --env: 'prod'
            --no-debug: null
```

### Reporting

[](#reporting)

The `reporting` key let you use a reporting tool in order to keep track of tasks execution. The only tool available for now is the `api`.

#### api

[](#api)

- `url`: api url (base uri and api route)
- `api_key`: optional api\_key used for authentication
- `format`: format used for the data. Only form is implemented. Default value is form

### tasks

[](#tasks)

The list of commands to execute.

- `command`: command to execute
- `schedule`: cron schedule
- `arguments`: list of the command's arguments

Mise en place des cron
----------------------

[](#mise-en-place-des-cron)

Add the following line to your crontab:

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

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3024d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bfae4f0954a577921be2539b40a1f1958376f5c7364505e1e238e232ba8066d9?d=identicon)[paulandrieux](/maintainers/paulandrieux)

![](https://www.gravatar.com/avatar/aa1b64ad195d72c206c231f7de5a464a9886bc403d82fa160ccc8106a5f96b69?d=identicon)[alexislefebvre](/maintainers/alexislefebvre)

---

Top Contributors

[![alexislefebvre](https://avatars.githubusercontent.com/u/2071331?v=4)](https://github.com/alexislefebvre "alexislefebvre (1 commits)")

---

Tags

croncrontabsymfony-bundlemonitoringcroncommand

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[liip/monitor-bundle

Liip Monitor Bundle

4728.7M16](/packages/liip-monitor-bundle)[jmose/command-scheduler-bundle

This Symfony bundle will allow you to schedule all your commands just like UNIX crontab

3361.4M1](/packages/jmose-command-scheduler-bundle)[shapecode/cron-bundle

This bundle provides scheduled execution of Symfony commands

59493.0k2](/packages/shapecode-cron-bundle)[dukecity/command-scheduler-bundle

This Symfony bundle will allow you to schedule all your commands just like UNIX crontab

25350.9k5](/packages/dukecity-command-scheduler-bundle)[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2830.1k2](/packages/inspector-apm-inspector-symfony)

PHPackages © 2026

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