A PHP Extensible Service Bus
Configure your atomic jobs in order to be played by cron, queue listener or webservice.
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:
# '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:
Execute the following command with Supervisor tool:
php bin/console autobus:pubsub:consume
With AWS SQS:
Add the following line to your crontab:
*/5 * * * * php bin/console autobus:sqs:consume
Add the following line to your crontab:
* * * * * php bin/console autobus:cron:run
To create a new job:
Autobus\Bundle\BusBundle\Runner\RunnerInterface ; it may extend Autobus\Bundle\BusBundle\Runner\AbstractRunnerservices.yml, with tag bus.runnerHow can I help you explore Laravel packages today?