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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

draw/cron-job
=============

This component allows to manage cron jobs.

0.39.2(2mo ago)016.9k↑118.4%1MITPHPPHP &gt;=8.5

Since Apr 21Pushed 2mo ago1 watchersCompare

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

READMEChangelogDependencies (28)Versions (61)Used By (1)

Cron Job
========

[](#cron-job)

This library is used to manage and process cron jobs from the database.

The cron are sent to a queue and processed by a worker via symfony messenger.

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

[](#configuration)

The package can be enabled as follows:

> ***NOTE:*** Below are the default configs which can be overwritten by your needs.

### Framework extra

[](#framework-extra)

```
draw_framework_extra:
  # ...
  cron_job:
    enabled: true
    doctrine:
      orm:
        mappings:
          DrawCronJob:
            is_bundle: false
            type: attribute
            dir: ...
            prefix: Draw\Component\CronJob\Entity
```

> ***NOTE:*** The following services are available:
>
> - **draw.cron\_job.command.queue\_cron\_job\_by\_name\_command**: Draw\\Component\\CronJob\\Command\\QueueCronJobByNameCommand
> - **draw.cron\_job.command.queue\_due\_cron\_jobs\_command**: Draw\\Component\\CronJob\\Command\\QueueDueCronJobsCommand
> - **draw.cron\_job.cron\_job\_processor**: Draw\\Component\\CronJob\\CronJobProcessor
> - **draw.cron\_job.message\_handler.execute\_cron\_job\_message\_handler**: Draw\\Component\\CronJob\\MessageHandler\\ExecuteCronJobMessageHandler

### Sonata integration

[](#sonata-integration)

```
draw_sonata_integration:
  cron_job:
    enabled: true
    admin:
      cron_job:
        group: Cron Job
        entity_class: Draw\Component\CronJob\Entity\CronJob
        controller_class: Draw\Bundle\SonataIntegrationBundle\CronJob\Controller\CronJobController
        icon: fas fa-clock
        label: Cron Job
        pager_type: simple
        show_in_dashboard: true
        translation_domain: SonataAdminBundle
      cron_job_execution:
        group: Cron Job
        entity_class: Draw\Component\CronJob\Entity\CronJobExecution
        controller_class: Draw\Bundle\SonataIntegrationBundle\CronJob\Controller\CronJobExecutionController
        icon: null
        label: Cron Job Execution
        pager_type: simple
        show_in_dashboard: true
        translation_domain: SonataAdminBundle
```

### Messenger

[](#messenger)

You need to configure the routing for the messenger component for the message that will be used to process the cron jobs.

```
framework:
  messenger:
    routing:
      Draw\Component\CronJob\Message\ExecuteCronJobMessage: 'async'
```

Usage
-----

[](#usage)

Once the package is enabled, a new admin page will be available - **Cron Job**. The package also provides 2 console commands:

- **draw:cron-job:queue-due** - it is used to process due cron jobs by their configs; it should be configured as a cron to be executed with \* \* \* \* \*
- **draw:cron-job:queue-by-name** - it allows to manually process a cron job by its name passed as an argument

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 96.2% 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 ~11 days

Total

60

Last Release

77d ago

PHP version history (3 changes)0.10.18PHP &gt;=8.1

0.10.47PHP &gt;=8.2

0.39.0PHP &gt;=8.5

### 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 (101 commits)")[![DumitracheAdrian](https://avatars.githubusercontent.com/u/12441524?v=4)](https://github.com/DumitracheAdrian "DumitracheAdrian (3 commits)")[![kiloumap](https://avatars.githubusercontent.com/u/17480546?v=4)](https://github.com/kiloumap "kiloumap (1 commits)")

---

Tags

croncron jobcronjobdraw

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

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

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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