PHPackages                             halloverden/symfony-scheduled-task-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. [Queues &amp; Workers](/categories/queues)
4. /
5. halloverden/symfony-scheduled-task-bundle

ActiveSymfony-bundle[Queues &amp; Workers](/categories/queues)

halloverden/symfony-scheduled-task-bundle
=========================================

Enables the creation of cron-jobs tasks to be consumed by symfony/messenger

2.0.0(3y ago)514.3kMITPHPPHP &gt;=8.1

Since Feb 25Pushed 3y ago5 watchersCompare

[ Source](https://github.com/halloverden/symfony-scheduled-task-bundle)[ Packagist](https://packagist.org/packages/halloverden/symfony-scheduled-task-bundle)[ RSS](/packages/halloverden-symfony-scheduled-task-bundle/feed)WikiDiscussions master Synced 1mo ago

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

Scheduled Task Bundle
=====================

[](#scheduled-task-bundle)

The Scheduled Task Bundle provides a way to implement cron jobs in your Symfony application, making use of the [messenger component](https://symfony.com/doc/current/messenger.html) to execute the jobs either synchronously or asynchronously.

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.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require halloverden/symfony-scheduled-task-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### 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 halloverden/symfony-scheduled-task-bundle
```

### 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 [
    // ...
    HalloVerden\ScheduledTaskBundle\HalloVerdenScheduledTaskBundle::class => ['all' => true],
];
```

Usage
-----

[](#usage)

- Route your messages to the transports by defining your own messenger logic in your `config/packages/messenger.yaml` file. For example, see `Resources/config/hallo_verden_scheduler.yaml`:

```
framework:
    messenger:
        routing:
            'HalloVerden\ScheduledTaskBundle\Interfaces\AsyncTaskInterface': async_task
            'HalloVerden\ScheduledTaskBundle\Interfaces\SyncTaskInterface': sync
```

- Make sure all the transports you want to use are configured under `transports:` in your `config/packages/messenger.yaml` file. For example, see `Resources/config/hallo_verden_scheduler.yaml`:

```
framework:
    messenger:
        transports:
            async_task: '%env(MESSENGER_TRANSPORT_DSN)%'
            sync: 'sync://'
```

N.B. Enabling the `failure_transport` is recommended.

- Create a Task class that implements the `AsyncTaskInterface` or the `SyncTaskInterface` and define the schedule and the name for the Task:

```
class RandomScheduledTask implements AsyncTaskInterface {

  public function getSchedule(): ScheduleInterface {
    return SimpleCronExpression::monthly()->day(23)->hour(16)->minute(25);
  }
  public function getName(): string {
    return 'random-scheduled-task';
  }
}

```

- Create a TaskHandler class for your task which will need to define an `__invoke(Taskclass $task)` method:

```
class RandomScheduledTaskHandler implements TaskHandlerInterface {

  public function __invoke(RandomScheduledTask $task) {
    //...
  }
}

```

---

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 78.6% 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 ~280 days

Total

3

Last Release

1341d ago

Major Versions

0.1.0 → 1.0.02021-05-28

1.0.0 → 2.0.02022-09-08

PHP version history (3 changes)0.1.0PHP ^7.2

1.0.0PHP &gt;=7.2

2.0.0PHP &gt;=8.1

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/944da5ba62000d8d54fdeabb71bb8554596caabae0cadcc2433028105c5d80c8?d=identicon)[erichjsonfosse](/maintainers/erichjsonfosse)

---

Top Contributors

[![marco-giannetti](https://avatars.githubusercontent.com/u/54795542?v=4)](https://github.com/marco-giannetti "marco-giannetti (11 commits)")[![tomme87](https://avatars.githubusercontent.com/u/9094256?v=4)](https://github.com/tomme87 "tomme87 (3 commits)")

---

Tags

cronjobmessengerphpschedulesymfonytasksymfonyjobcronscheduletaskMessenger

### Embed Badge

![Health badge](/badges/halloverden-symfony-scheduled-task-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/halloverden-symfony-scheduled-task-bundle/health.svg)](https://phpackages.com/packages/halloverden-symfony-scheduled-task-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)[contao/core-bundle

Contao Open Source CMS

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

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

53541.0k3](/packages/jolicode-castor)

PHPackages © 2026

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