{"id":18031624,"url":"https://github.com/hexalgo-labs/cron-style-scheduler-bundle","last_synced_at":"2026-04-27T22:31:46.126Z","repository":{"id":62516126,"uuid":"420886398","full_name":"hexalgo-labs/Cron-Style-Scheduler-Bundle","owner":"hexalgo-labs","description":"Manage your automated Symfony command execution with an annotation.","archived":false,"fork":false,"pushed_at":"2022-07-13T11:42:45.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T14:05:51.568Z","etag":null,"topics":["cron","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexalgo-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-25T05:11:34.000Z","updated_at":"2021-10-25T16:45:27.000Z","dependencies_parsed_at":"2022-11-02T13:03:56.929Z","dependency_job_id":null,"html_url":"https://github.com/hexalgo-labs/Cron-Style-Scheduler-Bundle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexalgo-labs%2FCron-Style-Scheduler-Bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexalgo-labs%2FCron-Style-Scheduler-Bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexalgo-labs%2FCron-Style-Scheduler-Bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexalgo-labs%2FCron-Style-Scheduler-Bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexalgo-labs","download_url":"https://codeload.github.com/hexalgo-labs/Cron-Style-Scheduler-Bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256072,"owners_count":20909240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cron","symfony","symfony-bundle"],"created_at":"2024-10-30T10:09:59.007Z","updated_at":"2026-04-27T22:31:45.927Z","avatar_url":"https://github.com/hexalgo-labs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cron Style Scheduler Bundle\n\nThis bundle allow you to manage your automated command execution directly on your Symfony command with an annotation.\n\n## Install the bundle\n\nTo install this bundle you need to do two things:\n* Add the dependency in your project with composer\n* Add an entry in crontab to launch the main command every minute\n\n### Install the dependency\nYou can install the bundle via composer this command\n\n``\ncomposer require hexalgo-labs/cron-style-scheduler-bundle\n``\n\n### Add an entry in crontab\nAdd the following line in crontab\n\n`* * * * * php /path/to/your/project/bin/console cron:run \u003e\u003e /dev/null 2\u003e\u00261`\n\nThis command will be executed every minute, and will check if there is command which is due and launch it\n\n### How to use it\n\nOn your Symfony command, add the annotation CronCommand with the cron expression on the class.\n\nFor example:\n\n```php\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Hexalgo\\CronStyleSchedulerBundle\\Annotation\\CronCommand;\n\n/**\n * @CronCommand(\"30 * * * *\")\n */\nclass MyTestCommand extends Command\n{\n  public static $defaultName = 'app:test-command';\n\n  protected function execute(InputInterface $input, OutputInterface $output) : int\n  {\n      return 1;\n  }\n}\n```\nThis command will be executed every 30 minutes.\n\nTo help you to create the cron expression you can use \u003chttps://crontab.guru\u003e.\n\n## Note for Windows user\nWhen using this bundle with Windows, the command will not be executed in background when you start the command cron:run.\nThe command will wait until all the launched commands are executed completely before finishing.  \n\n## Hexalgo\nWe are a french agency specialized in Symfony applications for business. \n\n## TO DO\n* Add command log\n* Send email / notification after command completion (fail or success)\n* Write tests","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexalgo-labs%2Fcron-style-scheduler-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexalgo-labs%2Fcron-style-scheduler-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexalgo-labs%2Fcron-style-scheduler-bundle/lists"}