PHPackages                             se7enxweb/ezplatform-cron - 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. se7enxweb/ezplatform-cron

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

se7enxweb/ezplatform-cron
=========================

Simple cron bundle for eZ Platform

v3.1.6(2y ago)1343GPL-2.0-onlyPHPPHP ^7.3 || ^8.0

Since Nov 28Pushed 2mo agoCompare

[ Source](https://github.com/se7enxweb/ezplatform-cron)[ Packagist](https://packagist.org/packages/se7enxweb/ezplatform-cron)[ Docs](https://github.com/ezsystems/ezplatform-cron)[ RSS](/packages/se7enxweb-ezplatform-cron/feed)WikiDiscussions 2.0 Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (42)Used By (3)

ezplatform-cron
===============

[](#ezplatform-cron)

This package exposes [cron/cron](https://github.com/Cron/Cron) package for use in eZ Platform (or just plain Symfony) via a simle command `ezplatform:cron:run`.

This is *not* a replacement for [cron/cron-bundle](https://github.com/Cron/Symfony-Bundle) but rather a simpler alternative to it which can more esaily grow into focusing more on eZ Platform needs in the future including e.g. support for handling cron jobs across a cluster install *(separating jobs that should run on all nodes vs jobs that should only be run on one at a time and a lock system to go with it for instance)*.

Setup system cron
-----------------

[](#setup-system-cron)

Pick your systems cron / scheduling and setup `ezplatform:cron:run` command to run every minute and optionally specifying category *(default: `default`)*:

Example for Linux crontab (`crontab -e`):

```
* * * * * /path/to/php app/console ezplatform:cron:run [ --category=default] >/dev/null 2>&1
```

Setting up own cron commands
----------------------------

[](#setting-up-own-cron-commands)

Setting up own cron jobs is as simple as tagging services for your existing Symfony Commands.

The tag takes the following arguments:

- `name`: `ezplatform.cron.job`
- `schedule`: *Takes any kind of [format supported by cron/cron](https://github.com/Cron/Cron#crontab-syntax), which mimics linux crontab format. E.g. `* * * * *`*
- `category`: *(Optional, by default: `default`) Lets you separate cronjobs that should be run under different logic then default, e.g. infrequent jobs (NOTE: Means end user will need to setup several entries in his crontab to run all categories!)*
- `options`: *(Optional, by default: `''`) Takes custom option/s in string format which are added to the command. (E.g. '--keep=0 --status=draft' for running the cleanup versions command)*

### Example

[](#example)

```
    date_based_published.cron.publish_scheduled:
        class: EzSystems\DateBasedPublisherBundle\Command\PublishScheduledCommand
        tags:
            - { name: console.command }
            - { name: ezplatform.cron.job, schedule: '* * * * *' }
```

Logging run command
-------------------

[](#logging-run-command)

If you want to log outputs of commands processed by run command you have to add the monolog channel `cronjob` to your configuration.

### Example

[](#example-1)

```
    monolog:
        channels: [...,'cronjob']
        handlers:
            cronjob:
                bubble: false
                level: info
                type: stream
                path: '%kernel.logs_dir%/cronjob.log'
                channels: [cronjob]
```

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance61

Regular maintenance activity

Popularity10

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor4

4 contributors hold 50%+ of commits

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

Recently: every ~360 days

Total

40

Last Release

68d ago

Major Versions

v2.0.4 → v3.0.32020-10-28

v2.0.5 → v3.1.12021-06-02

v3.1.2 → v4.0.0-alpha12021-10-04

v2.0.6 → v3.1.32021-11-10

v2.0.7 → 3.1.x-dev2023-05-10

PHP version history (2 changes)v3.0.0-beta1PHP ^7.3

v3.1.4PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2a5049c5b1e7a22c301a2472d09281be35f717da316873861c1a8ae785ada7a?d=identicon)[7x](/maintainers/7x)

---

Top Contributors

[![ibexa-yuna](https://avatars.githubusercontent.com/u/67897517?v=4)](https://github.com/ibexa-yuna "ibexa-yuna (3 commits)")[![adamwojs](https://avatars.githubusercontent.com/u/211967?v=4)](https://github.com/adamwojs "adamwojs (3 commits)")[![andrerom](https://avatars.githubusercontent.com/u/289757?v=4)](https://github.com/andrerom "andrerom (3 commits)")[![alongosz](https://avatars.githubusercontent.com/u/7099219?v=4)](https://github.com/alongosz "alongosz (2 commits)")[![homarx](https://avatars.githubusercontent.com/u/20766803?v=4)](https://github.com/homarx "homarx (2 commits)")[![se7enxweb](https://avatars.githubusercontent.com/u/51429274?v=4)](https://github.com/se7enxweb "se7enxweb (2 commits)")[![Nattfarinn](https://avatars.githubusercontent.com/u/5822569?v=4)](https://github.com/Nattfarinn "Nattfarinn (2 commits)")[![webhdx](https://avatars.githubusercontent.com/u/10212760?v=4)](https://github.com/webhdx "webhdx (1 commits)")[![mateuszbieniek](https://avatars.githubusercontent.com/u/38975612?v=4)](https://github.com/mateuszbieniek "mateuszbieniek (1 commits)")[![mnocon](https://avatars.githubusercontent.com/u/10993858?v=4)](https://github.com/mnocon "mnocon (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/se7enxweb-ezplatform-cron/health.svg)

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

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M563](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M81](/packages/symplify-monorepo-builder)[sulu/sulu

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

1.3k1.3M151](/packages/sulu-sulu)[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)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

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