edfa3ly-backend/rabbitmq-bundle-consumer-generator
php-amqplib/rabbitmq-bundle).php-amqplib/rabbitmq-bundle may restrict flexibility if the team uses alternative message brokers (e.g., Redis Streams, Kafka).GeneratorWrapper and define consumers programmatically.rabbitmq-bundle's config/packages/old_sound_rabbit_mq.yaml).php-amqplib itself is stable, but the bundle may lag behind updates.rabbitmq-bundle updates.rabbitmq-bundle are in use? Are they supported by this package?voryx/laravel-rabbitmq) that offer similar functionality?php-amqplib)?symfony/validator) to enforce consumer constraints?php-amqplib/rabbitmq-bundle.symfony/dependency-injection).voryx/laravel-rabbitmq (active maintenance, Laravel-specific).yamllint, custom scripts).php-amqplib/rabbitmq-bundle (e.g., old-sound/rabbit-mq-bundle).composer why-not to resolve potential issues.config/app.php under extra.bundles.GeneratorWrapper is autowired correctly (may require Laravel 5.5+).symfony/yaml to merge dynamically generated consumers into the main config.php-amqplib/rabbitmq-bundle (if not already present)..env (e.g., RABBITMQ_HOST).composer require edfa3ly-backend/rabbitmq-bundle-consumer-generator
GeneratorWrapper (as per README).class ConsumerGeneratorService {
public function __construct(private GeneratorWrapper $wrapper) {}
public function generateAllConsumers() {
$this->wrapper->generateConsumer(new ConsumerSkeleton(...));
// Write to e.g., `config/packages/old_sound_rabbit_mq_dynamic.yaml`
}
}
- name: Validate RabbitMQ YAML
run: |
php bin/console cache:clear
php vendor/bin/yamllint config/packages/old_sound_rabbit_mq*.yaml
GeneratorWrapper usage.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Bundle incompatibility | Consumers fail to register | Pin versions in composer.json, test upgrades. |
| YAML generation errors | Invalid config deploys | CI validation, rollback static YAML. |
| File permission issues | Configs not written | Ensure deploy user has write access to config dir. |
| RabbitMQ connection failures | Consumers not registered | Retry logic in GeneratorWrapper or service. |
| Duplicate consumer names | Overwrites or conflicts | Validate YAML before deployment. |
| Bundle abandonment | No future updates | Fork or migrate to alternative (e.g., database). |
GeneratorWrapper API.GeneratorWrapper for autocomplete.php bin/console rabbitmq:list-consumers).How can I help you explore Laravel packages today?