Download the PHP package babymarkt/cron-bundle without Composer
On this page you can find all versions of the php package babymarkt/cron-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cron-bundle
CronBundle
A small bundle to manage cron entries in system crontab.
Installation
You need to require this library through composer:
If you are using Symfony Flex, the following will happen automatically. Otherwise,
you have to enable the bundle on the bundles.php
manually:
Configuration
Let's start with a minimal setup to run a job every minute:
After syncing the cronjobs with the command bin/console babymarkt-cron:sync --env=prod
,
following entry are created in the crontab:
To learn more about CRON see CRON expression on Wikipedia.
Examples
A job running every day at 3:30 AM
A job running every Tuesday every 10 minutes between 1:00 and 4:00 AM
Full configuration reference
Commands
babymarkt-cron:drop
Drops all the whole cronjobs block from crontab not considering the configured cronjobs.
babymarkt-cron:dump
Generates the cron entries which may be installed to crontab and shows it on console.
babymarkt-cron:report
Show some reports about the execution of the configured cronjobs. This features required the DoctrineBundle.
babymarkt-cron:sync
Syncs the configured cronjobs with the crontab. Only the related cron block will be affected.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/Baby-Markt/cron-bundle.
License
The bundle is available as open source under the terms of the MIT License.
All versions of cron-bundle with dependencies
symfony/framework-bundle Version ^4.4 || ^5.4 || ^6.0
symfony/console Version ^4.4 || ^5.4 || ^6.0
symfony/yaml Version ^4.4 || ^5.4 || ^6.0