PHPackages                             byfareska/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. byfareska/cron-bundle

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

byfareska/cron-bundle
=====================

Symfony cron

v1.4.0(1w ago)02.6kMITPHPPHP &gt;=8.2

Since May 1Pushed 1w ago1 watchersCompare

[ Source](https://github.com/byfareska/symfony-cron)[ Packagist](https://packagist.org/packages/byfareska/cron-bundle)[ RSS](/packages/byfareska-cron-bundle/feed)WikiDiscussions master Synced yesterday

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

Cron bundle
===========

[](#cron-bundle)

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

[](#requirements)

- PHP &gt;= 8.2
- Symfony 6.1, 7.x, or 8.x

Fast setup
----------

[](#fast-setup)

1. Add to cron `* * * * * php bin/console cron:run`
2. Create a class that implements `\Byfareska\Cron\Task\ScheduledTask`, for example:

```
final class DeleteFileEveryHourTask implements ScheduledTask {

    public function cronInvoke(DateTimeInterface $now, bool $forceRun, OutputInterface $output): bool
    {
        if($forceRun || $now->format('i') === '0'){
            $this();
            return true;
        }

        return false;
    }

    public function __invoke(): void
    {
        unlink('/var/example');
    }
}
```

Useful commands
---------------

[](#useful-commands)

### Force to run some tasks

[](#force-to-run-some-tasks)

```
php bin/console cron:run --task=App\\Task\\DeleteFileEveryHourTask,App\\Task\\AnotherTask

```

### List all registered tasks

[](#list-all-registered-tasks)

```
php bin/console debug:container --tag=cron.task

```

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance98

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Recently: every ~150 days

Total

8

Last Release

11d ago

PHP version history (3 changes)v1.0.0PHP &gt;=7.4

v1.2.0PHP &gt;=8.0

v1.3.0PHP &gt;=8.2

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[symfony/ai-bundle

Integration bundle for Symfony AI components

32642.2k24](/packages/symfony-ai-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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