PHPackages                             thhan/schedule-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. thhan/schedule-bundle

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

thhan/schedule-bundle
=====================

thhan ScheduleBundle

1.0.0(6y ago)05MITPHPPHP ^7.1.3

Since Feb 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/thhan/Schedule-Bundle)[ Packagist](https://packagist.org/packages/thhan/schedule-bundle)[ RSS](/packages/thhan-schedule-bundle/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Schedule-Bundle
===============

[](#schedule-bundle)

This bundle offers you the possibility to add console commands to a cronjob with a simple function.

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

[](#installation)

```
composer req thhan/schedule-bundle
```

Register this bundle manually.

```
// config/bundles.php

return [
    // Other bundles...
    Thhan\ScheduleBundle\ScheduleBundle::class => ['all' => true],
];
```

Server configuration
--------------------

[](#server-configuration)

Finally you create a cronjob on the server that executes the "schedule:run" command every minute.

```
* * * * * {path_to_symfony}/bin/console schedule:run >> /dev/null 2>&1

```

Usage
-----

[](#usage)

Add the Trait Schedule class to your console command. Extend the configuration function with the function "addCron". As parameter you pass a string or an array of strings with the formatting of cron jobs.

```
use Thhan\ScheduleBundle\Command\Schedule;

class YourCommand extends Command {
    use Schedule;

    public function configure() {
        $this->setName('app:test')
             ->addCron('30 3 * * *')
             ->addCron([
                 '*/10 * * * *',
                 '0 22 * * 1'
             ]);
    }
}
```

Planned
-------

[](#planned)

- add jobs via configuration
- add logger for output

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2273d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

bundleschedulecommand

### Embed Badge

![Health badge](/badges/thhan-schedule-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/thhan-schedule-bundle/health.svg)](https://phpackages.com/packages/thhan-schedule-bundle)
```

###  Alternatives

[dragonmantank/cron-expression

CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due

4.7k474.1M487](/packages/dragonmantank-cron-expression)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[symfony/scheduler

Provides scheduling through Symfony Messenger

8810.8M52](/packages/symfony-scheduler)[mult1mate/cron-manager

Flexible cron tasks manager for MVC-type applications

40338.5k3](/packages/mult1mate-cron-manager)[skywarth/chaotic-schedule

Randomize scheduled command execution time and date intervals

12142.3k](/packages/skywarth-chaotic-schedule)[shapecode/cron-bundle

This bundle provides scheduled execution of Symfony commands

59493.0k2](/packages/shapecode-cron-bundle)

PHPackages © 2026

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