PHPackages                             hexalgo-labs/cron-style-scheduler-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. [CLI &amp; Console](/categories/cli)
4. /
5. hexalgo-labs/cron-style-scheduler-bundle

ActiveSymfony-bundle[CLI &amp; Console](/categories/cli)

hexalgo-labs/cron-style-scheduler-bundle
========================================

Manage your automated commands execution by using annotation which use cron expression. Compatible with Symfony 4 and 5.

v1.0.1(3y ago)1308MITPHPPHP ^7.1|^8.1

Since Oct 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hexalgo-labs/Cron-Style-Scheduler-Bundle)[ Packagist](https://packagist.org/packages/hexalgo-labs/cron-style-scheduler-bundle)[ RSS](/packages/hexalgo-labs-cron-style-scheduler-bundle/feed)WikiDiscussions master Synced 3d ago

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

Cron Style Scheduler Bundle
===========================

[](#cron-style-scheduler-bundle)

This bundle allow you to manage your automated command execution directly on your Symfony command with an annotation.

Install the bundle
------------------

[](#install-the-bundle)

To install this bundle you need to do two things:

- Add the dependency in your project with composer
- Add an entry in crontab to launch the main command every minute

### Install the dependency

[](#install-the-dependency)

You can install the bundle via composer this command

`composer require hexalgo-labs/cron-style-scheduler-bundle`

### Add an entry in crontab

[](#add-an-entry-in-crontab)

Add the following line in crontab

`* * * * * php /path/to/your/project/bin/console cron:run >> /dev/null 2>&1`

This command will be executed every minute, and will check if there is command which is due and launch it

### How to use it

[](#how-to-use-it)

On your Symfony command, add the annotation CronCommand with the cron expression on the class.

For example:

```
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Hexalgo\CronStyleSchedulerBundle\Annotation\CronCommand;

/**
 * @CronCommand("30 * * * *")
 */
class MyTestCommand extends Command
{
  public static $defaultName = 'app:test-command';

  protected function execute(InputInterface $input, OutputInterface $output) : int
  {
      return 1;
  }
}
```

This command will be executed every 30 minutes.

To help you to create the cron expression you can use .

Note for Windows user
---------------------

[](#note-for-windows-user)

When using this bundle with Windows, the command will not be executed in background when you start the command cron:run. The command will wait until all the launched commands are executed completely before finishing.

Hexalgo
-------

[](#hexalgo)

We are a french agency specialized in Symfony applications for business.

TO DO
-----

[](#to-do)

- Add command log
- Send email / notification after command completion (fail or success)
- Write tests

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

1399d ago

PHP version history (2 changes)v1.0.0PHP ^7.1

v1.0.1PHP ^7.1|^8.1

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

cronsymfonysymfony-bundlesymfonycron

### Embed Badge

![Health badge](/badges/hexalgo-labs-cron-style-scheduler-bundle/health.svg)

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

###  Alternatives

[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)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[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)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[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)
