PHPackages                             draw/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. draw/cron-bundle

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

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

This bundle allow cron configuration that can be dump into a compatible cron job file format.

0.7.59(4y ago)010.1kMITPHPCI failing

Since Mar 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mpoiriert/cron-bundle)[ Packagist](https://packagist.org/packages/draw/cron-bundle)[ RSS](/packages/draw-cron-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (5)Versions (86)Used By (0)

Draw Cron Bundle
================

[](#draw-cron-bundle)

This bundle is use to configure cron job that can be dump into a compatible cron job file format. You can configure cron base on the environment configuration or a **enabled** setting.

This is mainly useful if you want to configure the cron in the project and during your deployment flow you call the command to dump the cron file with the proper environment configure.

**This bundle does no intent to run the cron, it's just to allow a centralize configuration.**

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

[](#configuration)

Here is a sample of the configuration:

```
parameters:
    cron.console.execution: "www-data php %kernel.project_dir%/bin/console"
    cron.context.enabled: true

draw_cron:
    jobs:
        acme_cron:
            description: "Execute acme:command every 5 minutes"
            command: "%cron.console.execution% acme:command"
            expression: "*/5 * * * *"
            output: ">/dev/null 2>&1" #This is the default value
            enabled: "%cron.context.enabled%"
```

This would output something like this:

```
#Description: Execute acme:command every 5 minutes
* * * * * www-data php /var/www/acme/bin/console acme:command >/dev/null 2>&1

```

Command
-------

[](#command)

The command to dump the file is *draw:cron:dump-to-file*.

If you want to dump it the first time or in a new file path you can simply do this:

```
bin/console draw:cron:dump-to-file /path/to/the/file

```

It will throw a exception if the file already exists. If you want to override it simply add the --override option.

```
bin/console draw:cron:dump-to-file /path/to/the/file --override

```

Normally you should integrate this in you deployment pipeline

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~9 days

Total

84

Last Release

1502d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bb9496b48abc2bfd37ebafa9cc4b3b1307a369ad27f6514943408d9b5ff18a5?d=identicon)[mpoiriert](/maintainers/mpoiriert)

---

Top Contributors

[![mpoiriert](https://avatars.githubusercontent.com/u/4175616?v=4)](https://github.com/mpoiriert "mpoiriert (69 commits)")

---

Tags

symfonycron

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[pugx/autocompleter-bundle

Add an autocomplete type to forms

93861.6k3](/packages/pugx-autocompleter-bundle)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

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