mgdigital / busque-bundle
Symfony bundle for BusQue, a command queue and scheduler for PHP7
Installs: 163
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.0
- league/tactician-bundle: ~0.4
- mgdigital/busque: ^0.2.3
- snc/redis-bundle: ~1.0|~2.0
- symfony/framework-bundle: ^2.7|~3.0
- symfony/monolog-bundle: ~2.11
Requires (Dev)
- behat/behat: ~3.0
- behat/symfony2-extension: ~2.0
- phpspec/prophecy: ~1.6
- phpunit/phpunit: @stable
- predis/predis: ~1.0
- squizlabs/php_codesniffer: ~2.6
README
Provides a Symfony bundle for BusQue, a Command Queue and Scheduler for PHP7.
Installation
Install with composer:
composer require mgdigital/busque-bundle
Configuration
The default configuration is as follows:
busque: implementation: queue_name_resolver: busque.queue_name_resolver.classname command_serializer: busque.command_serializer.php command_id_generator: busque.command_id_generator.object_hash queue_adapter: busque.queue_adapter.predis predis_client: snc_redis.busque_client scheduler_adapter: busque.scheduler_adapter.predis clock: busque.system_clock commandbus_adapter: busque.commandbus_adapter.tactician error_handler: busque.error_handler
Configure the Redis client:
snc_redis: clients: busque: type: predis alias: busque dsn: 'redis://localhost' logging: false options: prefix: 'busque'
Usage
Refer to the BusQue README.
Tests
Run the Behat suite:
bin/behat