PHPackages                             tarasovich/symfony-cron-commands - 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. tarasovich/symfony-cron-commands

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

tarasovich/symfony-cron-commands
================================

Tools to declare symfony commands as cron tasks

v0.1.1-alpha(3y ago)0116MITPHPPHP ^8.0

Since Jul 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tarasovich/symfony-cron-commands)[ Packagist](https://packagist.org/packages/tarasovich/symfony-cron-commands)[ RSS](/packages/tarasovich-symfony-cron-commands/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Symfony Cron Commands Bundle
============================

[](#symfony-cron-commands-bundle)

Tools to declare symfony commands as cron tasks (Linux cron config generation and command lock listener)

##### Interfaces:

[](#interfaces)

- CronCommandInterface - general cron command, you need to declare getCronInterval(): string
- LockedCronCommandInterface - enables lock listener on the command
- LoggedCronCommandInterface - enables output redirection for the command in linux config generation
- LockedLoggedCronCommandInterface - enables lock listener and output redirection

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require tarasovich/symfony-cron-commands
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Tarasovich\CronCommands\CronCommandsBundle::class => ['all' => true],
];
```

### Step 3: Configure the Bundle

[](#step-3-configure-the-bundle)

Then configure the bundle by creating `config/packages/cron_commands.yaml`:

```
# config/packages/cron_commands.yaml

cron_commands:
  locks:
    enabled: true # Enable lock listener
    template: 'var/run/{command_dashes}.{env}.lock' # Lock file name template relative to project dir or absolute

  linux_config_generation:
    enabled: true # Enable linux config generation command
    templates:
      task: '{interval} {user} php {bin} --env={env} {command} {logging}' # Task template
      log_filename: '{command_dashes}.{env}.log' # Log file name template
    default_options: # Default command options
      bin: '%kernel.project_dir%/bin/console'
      logs: '%kernel.logs_dir%'
      output: '%kernel.project_dir%/var/tmp/self-serve-cron.conf'
      user: '{current_user}'
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Every ~0 days

Total

2

Last Release

1455d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tarasovich-symfony-cron-commands/health.svg)

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

PHPackages © 2026

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