PHPackages                             lingoda/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. lingoda/cron-bundle

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

lingoda/cron-bundle
===================

Lingoda cron bundle

2.3.0(1mo ago)168.5k↓31.6%MITPHPPHP ^8.3CI passing

Since Jun 16Pushed 1mo ago13 watchersCompare

[ Source](https://github.com/lingoda/cron-bundle)[ Packagist](https://packagist.org/packages/lingoda/cron-bundle)[ RSS](/packages/lingoda-cron-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (48)Versions (17)Used By (0)

Lingoda's cron bundle
=====================

[](#lingodas-cron-bundle)

This bundle allows scheduling of jobs that will execute in a different process than the process that triggered them

How to use
----------

[](#how-to-use)

Either extend the `ScheduleBaseCronJob` abstract class or implement the `CronJobInterface` interface. These will automatically be recognized by your Symfony application. Then there's nothing left to do than execute the command `bin/console lg:cron:trigger-due-jobs`. This will send a message on the application's messenger bus for each recognized cron job that is due. Usually, this means that a message will be put on some sort of a queue which will then be picked up by a handler which will actually run the job.

When implementing a cron job, you shall not expect the cron to actually run at the scheduled times.

- The queue might be unavailable or overloaded, and you can't predict the delay
- The actual previous run time will be passed to your run method. Use it!
- The job might be run manually. Or it might have been run manually previously. Even multiple times.

#### Triggering individual jobs

[](#triggering-individual-jobs)

```
bin/console lg:cron:run-job App\\Cron\\SomeCronJobImplementation
```

Examples
--------

[](#examples)

Extending ScheduleBaseCronJob

```
class MyCronJob extends ScheduleBaseCronJob
{
    protected function getSchedule(): Schedule
    {
        // this job will execute every hour at the 30th minute
        return Schedule::everyHour(30);
    }

    public function run(): void
    {
        // do the job here
    }
}
```

Implementing CronJobInterface

```
class MyCronJob implements CronJobInterface
{
    public function run(): void
    {
        // do the job
    }

    public function shouldRun(DateTimeInterface $lastFinishTime = null): bool
    {
        // implement your own logic for determining if a job should
        // at a particular time or not
    }

    public function getLockTTL(): float
    {
        // before running, an expiring lock is acquired for each job to prevent
        // a job of the same type to run at the same time; with this method
        // the job can specify a custom expiry period in seconds for the lock

        return 30.0;
    }

    public function __toString(): string
    {
        // Here comes the cron expression as string, e.g. 30 1 * * *
        return '30 1 * * *';
    }
}
```

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity32

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 68% 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 ~221 days

Recently: every ~185 days

Total

7

Last Release

54d ago

Major Versions

1.0.0 → 2.0.02024-03-12

PHP version history (2 changes)1.0.0PHP ^8.1

2.3.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/30c0431d32647bf0f71a0dbb9d2c6b9e71f18ae88124366d07a3305dc2505114?d=identicon)[balazscsaba2006](/maintainers/balazscsaba2006)

---

Top Contributors

[![balazscsaba2006](https://avatars.githubusercontent.com/u/1202594?v=4)](https://github.com/balazscsaba2006 "balazscsaba2006 (17 commits)")[![henry2778](https://avatars.githubusercontent.com/u/13105599?v=4)](https://github.com/henry2778 "henry2778 (4 commits)")[![stas-lingoda](https://avatars.githubusercontent.com/u/89907793?v=4)](https://github.com/stas-lingoda "stas-lingoda (2 commits)")[![svichka](https://avatars.githubusercontent.com/u/11856230?v=4)](https://github.com/svichka "svichka (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/lingoda-cron-bundle/health.svg)](https://phpackages.com/packages/lingoda-cron-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)[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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