Download the PHP package aurimasniekis/scheduler-bundle without Composer
On this page you can find all versions of the php package aurimasniekis/scheduler-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aurimasniekis/scheduler-bundle
More information about aurimasniekis/scheduler-bundle
Files in aurimasniekis/scheduler-bundle
Package scheduler-bundle
Short Description A simple Symfony Job Scheduling Bundle
License MIT
Homepage https://github.com/aurimasniekis/scheduler-bundle
Informations about the package scheduler-bundle
Scheduler Bundle
A simple scheduler bundle for Symfony which provides a way to execute code at specific cron expressions without modifying cron tab every time.
Install
Via Composer
Add line to bundle.php
:
Add the scheduler to cron tab to run every minute:
Usage
Scheduler Bundle uses Symfony Container autoconfigure
feature which automatically registers all services
which implement ScheduledJobInterface
or NamedScheduledJobInterface
interface into Scheduler.
To create a scheduled job you have two options either simple Scheduled Job or Named Scheduled Job. First one uses class name as job name, second provides method to define a job name.
Console Commands
scheduler:list
List all registered scheduled jobs, and their next scheduled run times
scheduler:execute
Executes a scheduled job manually
scheduler:run
Command to run all scheduled jobs at this moment. (Used for cron job definition)
Testing
Run test cases
Run test cases with coverage (HTML format)
Run PHP style checker
Run PHP style fixer
Contributing
Please see CONDUCT for details.
License
Please see License File for more information.
All versions of scheduler-bundle with dependencies
dragonmantank/cron-expression Version ^2.3
psr/log Version ^1.1
symfony/console Version ~4.0||~5.0
symfony/framework-bundle Version ~4.0||~5.0