{"id":14984066,"url":"https://github.com/mybuilder/supervisor-bundle","last_synced_at":"2025-08-10T14:05:47.398Z","repository":{"id":57022552,"uuid":"71802527","full_name":"mybuilder/supervisor-bundle","owner":"mybuilder","description":"Easily update your @supervisor configuration by using annotations in Symfony commands.","archived":false,"fork":false,"pushed_at":"2022-09-29T12:52:01.000Z","size":37,"stargazers_count":34,"open_issues_count":0,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-07-23T03:27:07.226Z","etag":null,"topics":["bundle","php","supervisord","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/mybuilder.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":"2016-10-24T15:22:36.000Z","updated_at":"2023-01-05T19:31:59.000Z","dependencies_parsed_at":"2022-08-23T12:20:42.786Z","dependency_job_id":null,"html_url":"https://github.com/mybuilder/supervisor-bundle","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/mybuilder/supervisor-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fsupervisor-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fsupervisor-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fsupervisor-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fsupervisor-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mybuilder","download_url":"https://codeload.github.com/mybuilder/supervisor-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fsupervisor-bundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269734150,"owners_count":24466554,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bundle","php","supervisord","symfony","symfony-bundle"],"created_at":"2024-09-24T14:08:23.838Z","updated_at":"2025-08-10T14:05:47.368Z","avatar_url":"https://github.com/mybuilder.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Supervisor Bundle\n\n[![Build Status](https://travis-ci.org/mybuilder/supervisor-bundle.svg?branch=master)](https://travis-ci.org/mybuilder/supervisor-bundle)\n\nA bundle for Symfony 4/5 which allows you to use `@Supervisor` annotations to configure how [Supervisor](http://supervisord.org/) runs your console commands.\n\n## Installation\n\n### Install with composer\n\nRun the composer require command:\n\n``` bash\n$ php composer.phar require mybuilder/supervisor-bundle\n```\n\n### Enable the bundle\n\nEnable the bundle in the `config/bundles.php` for Symfony:\n\n```php\nreturn [\n    MyBuilder\\Bundle\\SupervisorBundle\\MyBuilderSupervisorBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\n### Configure the bundle\n\nYou can add the following to `packages/my_builder_supervisor.yaml` for Symfony to define your global export configuration:\n\n```yaml\nmy_builder_supervisor:\n    exporter:\n        # any Supervisor program options can be specified within this block\n        program:\n            autostart: 'true'\n        \n        # allows you to specify a program that all commands should be passed to\n        executor: php \n        \n        # allows you to specify the console that all commands should be passed to\n        console: bin/console\n```\n\n## Usage\n\nThe first step is to add the `use` case for the annotation to the top of the command you want to use the `@Supervisor` annotations in.\n\n```php\nuse MyBuilder\\Bundle\\SupervisorBundle\\Annotation\\Supervisor;\n```\n\nThen define the `@Supervisor` annotation within the command's PHPDoc, which tells Supervisor how to configure this program.\nThe example below declares that three instances of this command should be running at all times on the server entitled 'web', with the provided parameter `--send`.\n\n```php\n/**\n * Command for sending our email messages from the database.\n *\n * @Supervisor(processes=3, params=\"--send\", server=\"web\")\n */\nclass SendQueuedEmailsCommand extends Command {}\n```\n\n\n## Exporting the Supervisor configuration\n\nYou should run `bin/console supervisor:dump` and review what the Supervisor configuration will look like based on the current specified definition.\nIf you are happy with this you can write out the configuration to a `conf` file:\n\n```\n$ bin/console supervisor:dump --user=mybuilder --server=web \u003e \"/etc/supervisor.d/symfony.conf\"\n```\n\nAnd then reload Supervisor:\n\n```\n$ kill -SIGHUP $(supervisorctl pid)\n```\n\n### Environment\n\nYou can choose which environment you want to run the commands in Supervisor under like this:\n\n```\n$ bin/console supervisor:dump --server=web --env=prod\n```\n\n---\n\nCreated by [MyBuilder](http://www.mybuilder.com/) - Check out our [blog](http://tech.mybuilder.com/) for more insight into this and other open-source projects we release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybuilder%2Fsupervisor-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmybuilder%2Fsupervisor-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybuilder%2Fsupervisor-bundle/lists"}