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

AbandonedArchivedSymfony-bundle

katzebue/cron-bundle
====================

Simple and effective cron implementation for Symfony 4+

0140PHP

Since Mar 26Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

How to install
--------------

[](#how-to-install)

Via composer: `composer require katzebue/cron-bundle`.

The bundle should be enabled automatically if you use the Symfony Flex.

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

[](#how-to-use)

Every cron job must implement the `Rikudou\CronBundle\Cron\CronJobInterface`(every class that implements the interface is automatically registered as cron job), which defines two methods:

- `string getCronExpression()` - the [cron expression](https://en.wikipedia.org/wiki/Cron#Overview)
- `execute(InputInterface $input, OutputInterface $output, LoggerInterface $logger)` - the method that will be executed, you can write to console output, use console input and use logger

Example:

```
