{"id":21499211,"url":"https://github.com/cron/symfony-bundle","last_synced_at":"2025-05-16T02:07:21.929Z","repository":{"id":14803282,"uuid":"17525533","full_name":"Cron/Symfony-Bundle","owner":"Cron","description":"Cron integration for symfony","archived":false,"fork":false,"pushed_at":"2024-07-29T19:21:26.000Z","size":119,"stargazers_count":189,"open_issues_count":2,"forks_count":74,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-16T02:07:03.837Z","etag":null,"topics":["hacktoberfest","php","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/Cron.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-03-07T19:56:51.000Z","updated_at":"2025-02-06T14:37:27.000Z","dependencies_parsed_at":"2024-04-28T00:24:45.662Z","dependency_job_id":"6a6966ca-5ff7-456b-9000-a03b2e22ae68","html_url":"https://github.com/Cron/Symfony-Bundle","commit_stats":{"total_commits":107,"total_committers":38,"mean_commits":"2.8157894736842106","dds":"0.47663551401869164","last_synced_commit":"a5f012288581305d66621a58a0e968e74d8cf6c9"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cron%2FSymfony-Bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cron%2FSymfony-Bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cron%2FSymfony-Bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cron%2FSymfony-Bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cron","download_url":"https://codeload.github.com/Cron/Symfony-Bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453652,"owners_count":22073617,"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":["hacktoberfest","php","symfony","symfony-bundle"],"created_at":"2024-11-23T17:14:53.683Z","updated_at":"2025-05-16T02:07:21.908Z","avatar_url":"https://github.com/Cron.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Cron Bundle\n===========\n\n [![Packagist](https://img.shields.io/packagist/v/cron/cron-bundle.svg?style=flat-square)](https://packagist.org/packages/cron/cron-bundle)\n [![Build status](https://img.shields.io/github/actions/workflow/status/cron/symfony-bundle/ci.yaml?style=flat-square)](https://github.com/cron/symfony-bundle/actions/workflows/ci.yml)\n [![Packagist](https://img.shields.io/packagist/dt/Cron/Cron-Bundle.svg?style=flat-square)](https://packagist.org/packages/cron/cron-bundle)\n [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)\n\n[Cron](https://github.com/Cron/Cron) integration for symfony.\n\nInstallation\n------------\n\nInstalling this bundle can be done through these simple steps:\n\n1. Add the bundle to your project as a composer dependency:\n```shell\ncomposer require cron/cron-bundle\n```\n\n2. Add the bundle to your application kernel:\n```php\n// app/AppKernel.php\npublic function registerBundles()\n{\n    // ...\n    $bundle = array(\n        // ...\n        new Cron\\CronBundle\\CronCronBundle(),\n    );\n    // ...\n\n    return $bundle;\n}\n```\n\n3. Update your DB schema\n```shell\nbin/console make:migration\nbin/console doctrine:migrations:migrate\n```\n\n4. Start using the bundle:\n```shell\nbin/console cron:list\nbin/console cron:run\n```\n\n5. To run your cron jobs automatically, add the following line to your (or whomever's) crontab:\n```\n* * * * * /path/to/symfony/install/app/console cron:run 1\u003e\u003e /dev/null 2\u003e\u00261\n```\n  **OR**\n  If you don't have a dedicated cron daemon (e.g. in Heroku), you can use:\n```shell\nbin/console cron:start # will run in background mode, use --blocking to run in foreground\nbin/console cron:stop # will stop the background cron daemon\n```\n\nAvailable commands\n------------------\n\n### list\n```shell\nbin/console cron:list\n```\nShow a list of all jobs. Job names are show with ```[x]``` if they are enabled and ```[ ]``` otherwise.\n\n### create\n```shell\nbin/console cron:create\n```\nCreate a new job.\n\n### delete\n```shell\nbin/console cron:delete _jobName_\n```\nDelete a job. For your own protection, the job must be disabled first.\n\n### enable\n```shell\nbin/console cron:enable _jobName_\n```\nEnable a job.\n\n### disable\n```shell\nbin/console cron:disable _jobName_\n```\nDisable a job.\n\n### run\n```shell\nbin/console cron:run [--force] [job]\n```\n\u003e which we borrowed from Symfony.\n\u003e Make sure to check out [php-cs-fixer](https://github.com/fabpot/PHP-CS-Fixer) as this will help you a lot.\n\u003e Please note that `--force` forces the job to be executed (even if disabled) based on the job schedule\n\n### run now, independent of the job schedule\n```shell\nbin/console cron:run --schedule_now [--force] job\n```\n\n### run in non-cli contexts (i.e. [from a controller](https://symfony.com/doc/current/console/command_in_controller.html))\n```shell\nbin/console cron:run --script-name='bin/console'\n```\n\n### start\n```shell\nbin/console cron:start [--blocking]\n```\nStart the cron as a daemon. By default it forks itself to the background and suppresses any output. The `--blocking` option will keep it in the foreground and will display output. This is useful when you don't have a dedicated cron daemon (e.g. on Heroku).\n\n### stop\n```shell\nbin/console cron:stop\n```\nStops the background cron daemon started with `cron:start`. This is not applicable when the daemon was started with `--blocking`.\n\nIf you would like to help, take a look at the [list of issues](http://github.com/Cron/CronBundle/issues).\n\nRequirements\n------------\n\nPHP 5.5.9 or above\n\nAuthor and contributors\n-----------------------\n\nDries De Peuter - \u003cdries@nousefreak.be\u003e - \u003chttp://nousefreak.be\u003e\n\nSee also the list of [contributors](https://github.com/Cron/CronBundle/contributors) who participated in this project.\n\nLicense\n-------\n\nCronBundle is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcron%2Fsymfony-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcron%2Fsymfony-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcron%2Fsymfony-bundle/lists"}