dev-master
9999999-devAutobusBusBundle
MIT
The Requires
- php >=7.0.0
- autobus-php/autobus-bus-export-bundle dev-master
- autobus-php/autobus-bus-sample-bundle dev-master
- php-amqplib/php-amqplib 2.7.*
by Pascal DENIS
AutobusBusBundle
A PHP Extensible Service Bus, (*1)
Configure your atomic jobs in order to be played by cron, queue listener or webservice., (*2)
composer require autobus-php/autobus-bus-bundle
composer require enqueue/gps:0.10.*
composer require enqueue/sqs:0.10.*
Update your .env
file to add:, (*3)
# 'gps:' for Google PubSub / 'sqs:' for AWS SQS ENQUEUE_DSN=sqs: # Only for AWS SQS usage AWS_REGION= AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY=
2 queuing systems are available:, (*4)
Execute the following command with Supervisor tool:, (*5)
php bin/console autobus:pubsub:consume
With AWS SQS:, (*6)
Add the following line to your crontab:, (*7)
*/5 * * * * php bin/console autobus:sqs:consume
Add the following line to your crontab:, (*8)
* * * * * php bin/console autobus:cron:run
To create a new job:, (*9)
Autobus\Bundle\BusBundle\Runner\RunnerInterface
; it may extend Autobus\Bundle\BusBundle\Runner\AbstractRunner
services.yml
, with tag bus.runner
AutobusBusBundle
MIT