reputation-vip / queue-client-bundle
Queue Client Symfony Bundle
Installs: 16 634
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 1
pkg:composer/reputation-vip/queue-client-bundle
Requires
- psr/log: ^1.0
- reputation-vip/queue-client: ~2.0
- symfony/config: >=3.3
- symfony/console: >=3.3
- symfony/dependency-injection: >=3.3
- symfony/framework-bundle: >=3.3
- symfony/http-kernel: >=3.3
- symfony/yaml: >=3.3
This package is not auto-updated.
Last update: 2025-10-21 09:16:43 UTC
README
An easy way to use queue client library in Symfony project with its own Symfony bundle.
Available commands
queue-client:add-messagesAdd message in queuequeue-client:create-queuesCreate queuesqueue-client:delete-queuesDelete queuesqueue-client:get-messagesGet messages from queuequeue-client:list-prioritiesList prioritiesqueue-client:purge-queuesPurge queuesqueue-client:queues-infoDisplay queues information
Use --help option for command usage.
Configuration
Add queue client configuration in config.yml and retrieve the service using Symfony container.
container->get('queue-client')
queue_client node needs an adapter node to define the adapter to be used.
adapter node must define a type parameter (see "Available adapter types")
Then add specific configuration for each type.
queue_client:
adapter:
type: queue type
Sample configuration:
queue_client:
queues_file: %kernel.root_dir%/config/queues.yml
adapter:
type: file
repository: /tmp/queues
priority_handler: 'ReputationVIP\QueueClient\PriorityHandler\ThreeLevelPriorityHandler'
General configuration
queues_filespecifies the default queues configuration file.queue_prefixspecifies a queue prefix can use in queues configuration file.priority_handlerspecifies the priority handler. Default is theReputationVIP\QueueClient\PriorityHandler\StandardPriorityHandler.
Available adapter types
nulla black hole type.memorya memory type.filea file queue type.sqsa SQS queue type.
File type Configuration
repository: this config value set the absolute path of the repository which contains queues files (default/tmp/queues).
SQS type Configuration
key:this config value set the SQS key.secret:this config value set the SQS secret.region:this config value set the SQS region (defaulteu-west-1).version:this config value set the SQS version (default2012-11-05).