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

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

4lxndr/cron-bundle
==================

Symfony bundle for scheduled command execution with dependency resolution, job tagging, and automatic failure handling

1.0.2(4mo ago)1153MITPHPPHP ^8.4CI passing

Since Dec 14Pushed 4mo agoCompare

[ Source](https://github.com/4lxndr/cron-bundle)[ Packagist](https://packagist.org/packages/4lxndr/cron-bundle)[ Docs](https://github.com/4lxndr/cron-bundle)[ RSS](/packages/4lxndr-cron-bundle/feed)WikiDiscussions master Synced today

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

Shapecode - Cron Bundle
=======================

[](#shapecode---cron-bundle)

[![PHP Version](https://camo.githubusercontent.com/6db033f79e8bbd2594d26c57dab884ae37fa145e2ccffb4123449830b6fc6981/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f346c786e64722f63726f6e2d62756e646c652e737667)](https://packagist.org/packages/4lxndr/cron-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/0aae6558a508b0cddbdfb0421d251986ea5daea6b43a4da5a869f056dd2c3f7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f346c786e64722f63726f6e2d62756e646c652e7376673f6c6162656c3d737461626c65)](https://packagist.org/packages/4lxndr/cron-bundle)[![License](https://camo.githubusercontent.com/9636e237fda27410b213c2ffa88d1f41ed27d7e2b73f3bbf7be69f61537db2c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f346c786e64722f63726f6e2d62756e646c652e737667)](https://packagist.org/packages/4lxndr/cron-bundle)

A Symfony bundle for managing scheduled cron jobs within your application.

Acknowledgments
---------------

[](#acknowledgments)

This bundle builds upon the foundation provided by [shapecode/cron-bundle](https://github.com/shapecode/cron-bundle). Thanks to the original authors and contributors for their excellent work.

Requirements
------------

[](#requirements)

- PHP 8.4+
- Symfony 7.4+ or 8.0+

Installation
------------

[](#installation)

```
composer require 4lxndr/cron-bundle
```

If Symfony Flex doesn't auto-register the bundle, add it to `config/bundles.php`:

```
return [
    // ...
    Shapecode\Bundle\CronBundle\ShapecodeCronBundle::class => ['all' => true],
];
```

Update your database schema:

```
php bin/console doctrine:schema:update --force
```

Quick Start
-----------

[](#quick-start)

Create a Symfony console command and add the `AsCronJob` attribute:

```
use Shapecode\Bundle\CronBundle\Attribute\AsCronJob;
use Symfony\Component\Console\Command\Command;

#[AsCronJob('*/5 * * * *')]
class MyTaskCommand extends Command
{
    protected function configure(): void
    {
        $this->setName('app:my-task');
    }

    protected function execute(InputInterface $input, OutputInterface $output): int
    {
        // Your task logic here
        return Command::SUCCESS;
    }
}
```

Scan and run your jobs:

```
php bin/console shapecode:cron:scan
php bin/console shapecode:cron:run
```

Add to your system crontab to run automatically every 5 minutes:

```
*/5 * * * * php /path/to/project/bin/console shapecode:cron:run

```

Documentation
-------------

[](#documentation)

- [Commands](commands.md) — Full reference for all available console commands
- [Configuration](configuration.md) — Bundle configuration options
- [Tags](tags.md) — Organizing and filtering jobs with tags
- [Dependencies](dependencies.md) — Job dependency chains, modes, and failure handling
- [Pause Windows](pause-windows.md) — Defining daily time ranges where jobs are silently skipped

Database Migrations
-------------------

[](#database-migrations)

When upgrading to a version that adds new columns (tags, dependencies, pause windows), migrate your database:

```
bin/console doctrine:migrations:diff
bin/console doctrine:migrations:migrate
bin/console shapecode:cron:scan
```

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance78

Regular maintenance activity

Popularity15

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.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 ~39 days

Total

3

Last Release

123d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15173990?v=4)[alex](/maintainers/4lxndr)[@4lxndr](https://github.com/4lxndr)

---

Top Contributors

[![nicklog](https://avatars.githubusercontent.com/u/462920?v=4)](https://github.com/nicklog "nicklog (206 commits)")[![lsimeonov](https://avatars.githubusercontent.com/u/17702047?v=4)](https://github.com/lsimeonov "lsimeonov (15 commits)")[![frostieDE](https://avatars.githubusercontent.com/u/3764924?v=4)](https://github.com/frostieDE "frostieDE (12 commits)")[![4lxndr](https://avatars.githubusercontent.com/u/15173990?v=4)](https://github.com/4lxndr "4lxndr (12 commits)")[![nikital-c24](https://avatars.githubusercontent.com/u/196168036?v=4)](https://github.com/nikital-c24 "nikital-c24 (9 commits)")[![alex-carpose](https://avatars.githubusercontent.com/u/249157206?v=4)](https://github.com/alex-carpose "alex-carpose (4 commits)")[![agcrpse](https://avatars.githubusercontent.com/u/249157206?v=4)](https://github.com/agcrpse "agcrpse (4 commits)")[![Gemorroj](https://avatars.githubusercontent.com/u/885731?v=4)](https://github.com/Gemorroj "Gemorroj (3 commits)")[![stevenjbrookes](https://avatars.githubusercontent.com/u/1766857?v=4)](https://github.com/stevenjbrookes "stevenjbrookes (3 commits)")[![declanv](https://avatars.githubusercontent.com/u/5460619?v=4)](https://github.com/declanv "declanv (1 commits)")[![NicoHaase](https://avatars.githubusercontent.com/u/1069028?v=4)](https://github.com/NicoHaase "NicoHaase (1 commits)")[![czachor](https://avatars.githubusercontent.com/u/1479296?v=4)](https://github.com/czachor "czachor (1 commits)")[![Zeichen32](https://avatars.githubusercontent.com/u/1432899?v=4)](https://github.com/Zeichen32 "Zeichen32 (1 commits)")[![vigikaran](https://avatars.githubusercontent.com/u/9039584?v=4)](https://github.com/vigikaran "vigikaran (1 commits)")[![garvek](https://avatars.githubusercontent.com/u/734794?v=4)](https://github.com/garvek "garvek (1 commits)")

---

Tags

symfonybundleautomationdependencytimecronscheduleworkflowcommandtagstaggingintervalshapecodedependenciesexecuteJob Schedulercronjob

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)

PHPackages © 2026

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