From d3043ca57d6db367118ed11f0c478110df223637 Mon Sep 17 00:00:00 2001 From: Phobetor Date: Sun, 12 Jul 2015 19:18:22 +0200 Subject: [PATCH] docs (readme): add readme --- README.md | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 109 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b7d7f4d..76631bf 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,112 @@ RabbitMQ supervisor bundle ========================== -Symfony 2 bundle to automatically create and update supervisor configurations for RabbitMQ consumer daemons +[![Latest Stable Version](https://poser.pugx.org/phobetor/rabbitmq-supervisor-bundle/v/stable.png)](https://packagist.org/packages/phobetor/rabbitmq-supervisor-bundle) [![License](https://poser.pugx.org/phobetor/rabbitmq-supervisor-bundle/license.png)](https://packagist.org/packages/phobetor/rabbitmq-supervisor-bundle) + +Symfony 2 bundle to automatically create and update supervisor configurations for `oldsound/rabbitmq-bundle` RabbitMQ consumer daemons. + +## In a nutshell | tl;dr + +If you use `oldsound/rabbitmq-bundle` to handle the communication with RabbitMQ, just add this bundle and run +```sh +app/console rabbitmq-supervisor:rebuild +``` +to get a running `supervisord` instance that automatically manages all your consumer daemons. +When your worker configuration or your code changes, run +```sh +app/console rabbitmq-supervisor:rebuild +``` +again and all the daemons will be updated. + +## Installation + +Add bundle via command line +```sh +php composer.phar require phobetor/rabbitmq-supervisor-bundle +``` + +or manually to `composer.json` file +```js +{ + "require": { + "phobetor/rabbitmq-supervisor-bundle": "~1.3" + } +} +``` + +Fetch the needed files: +```bash +$ php composer.phar update phobetor/rabbitmq-supervisor-bundle +``` + +This will install the bundle to your project’s `vendor` directory. + +Add the bundle to your project’s `AppKernel`: +```php +