Download the PHP package luiswagener/symfony-cron-bundle without Composer
On this page you can find all versions of the php package luiswagener/symfony-cron-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download luiswagener/symfony-cron-bundle
More information about luiswagener/symfony-cron-bundle
Files in luiswagener/symfony-cron-bundle
Package symfony-cron-bundle
Short Description Contao-style cron framework for Symfony: minutely CLI dispatch with DB-backed last-run tracking.
License MIT
Informations about the package symfony-cron-bundle
Symfony Cron Bundle
Cron framework for Symfony applications. Register cron jobs with a single attribute, run them from a single minutely server cron, and persist last-run timestamps in the database.
Installation
Register the bundle in config/bundles.php:
Create the database table:
Doctrine must have auto_mapping: true (Symfony default) so the bundle entity is discovered automatically.
Server cron
Configure one minutely cron job on your server:
Defining cron jobs
Place a class anywhere under src/ and annotate it with #[AsCronJob]. No service registration or tagging is required — standard Symfony autowiring picks it up automatically.
Supported intervals
- Presets:
minutely,hourly,daily,weekly,monthly,yearly - Cron expressions:
0 * * * *,*/5 * * * * - Human-readable:
1 minute,every 5 minutes,1 hour
Command usage
Skipping execution
Throw CronExecutionSkippedException to skip a job without updating last_run:
License
MIT
All versions of symfony-cron-bundle with dependencies
doctrine/orm Version ^3.0
dragonmantank/cron-expression Version ^3.3
symfony/config Version ^6.4 || ^7.0 || ^8.0
symfony/console Version ^6.4 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.4 || ^7.0 || ^8.0
symfony/framework-bundle Version ^6.4 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.4 || ^7.0 || ^8.0