PHPackages                             mkijak/cronjob-commands-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. mkijak/cronjob-commands-bundle

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

mkijak/cronjob-commands-bundle
==============================

Runs (or not) registered Symfony commands according to cron expressions

v2.1(2mo ago)01.5k↓50%MITPHPPHP ^8.0

Since Apr 11Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/mkijak/cronjob-commands-bundle)[ Packagist](https://packagist.org/packages/mkijak/cronjob-commands-bundle)[ RSS](/packages/mkijak-cronjob-commands-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (13)Used By (0)

Symfony commands as cron jobs
=============================

[](#symfony-commands-as-cron-jobs)

Using this bundle you can manage cron jobs with yaml configuration of your Symfony application.

It:

- provides a simple way of running commands according to cron expressions
- supports command arguments, options and verbosity settings
- prints full output of running commands
- uses  to resolve cron expressions

Installing
==========

[](#installing)

Update composer.json:

```
composer require mkijak/cronjob-commands-bundle
```

Enable the bundle in Symfony application:

```
# config/bundles.php

Mkijak\CronJobCommandsBundle\CronJobCommandsBundle::class => ['all' => true],
```

Configuration
=============

[](#configuration)

It is recommended to set the timezone (default timezone is UTC and server settings aren't considered).

```
# config/packages/cron_job_commands.yaml
cron_job_commands:
    timezone: UTC
    schedule:
        command1:
            name: app:command #command name registered in symfony
            enabled: true #default: true
            cron_expression: "* * * * *" #supports also predefined keywords e. g. "@daily", see https://github.com/dragonmantank/cron-expression
            arguments:
                argument1name: value
                argument2name: value
            options:
                option1name: value
                option2name: value
            multivalue_options:
                option1name:
                    - value1
                    - value2
                option2name:
                    - value1
        command2:
            name: app:another_command
            cron_expression: "@daily"
```

Usage
=====

[](#usage)

Run the "trigger-command" once per minute. Consider using quiet mode for less output.

For cron: add to crontab (`crontab -e`):

```
* * * * * /path/to/symfony/bin/console cron_commands:trigger -q
```

In the quiet mode you can still display some messages from your commands setting visibility level as a second parameter of the writeln function (or 3rd parameter of the write function):

```
use Symfony\Component\Console\Output\OutputInterface;

/** @var OutputInterface $output */
$output->writeln('Message', OutputInterface::VERBOSITY_QUIET)
```

Requirements
============

[](#requirements)

- PHP 8.0 or above
- Symfony 5.0 or newer

Licence
=======

[](#licence)

*Symfony commands as cron jobs* is licenced under the MIT Licence.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance85

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity75

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 ~287 days

Recently: every ~377 days

Total

11

Last Release

78d ago

Major Versions

v1.6 → v2.02025-04-06

PHP version history (3 changes)1.0.0PHP ^7.1

1.4PHP ^7.1|^8.0

v2.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5417644ce98e978722c71dbb68b2d5ac4c1356a80ae62856e6689ed01456b651?d=identicon)[mkijak](/maintainers/mkijak)

---

Top Contributors

[![mkijak](https://avatars.githubusercontent.com/u/5425918?v=4)](https://github.com/mkijak "mkijak (15 commits)")

---

Tags

symfonycronschedulecommand

### Embed Badge

![Health badge](/badges/mkijak-cronjob-commands-bundle/health.svg)

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

###  Alternatives

[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)[guikingone/scheduler-bundle

A Symfony bundle that allows to schedule and create repetitive tasks

114217.4k](/packages/guikingone-scheduler-bundle)[rewieer/taskschedulerbundle

Task Scheduler with CRON for Symfony

63242.1k](/packages/rewieer-taskschedulerbundle)[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)[synolia/sylius-scheduler-command-plugin

Scheduler Command Plugin.

34361.5k](/packages/synolia-sylius-scheduler-command-plugin)

PHPackages © 2026

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