Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Autobus Bus Bundle Laravel Package

autobus-php/autobus-bus-bundle

View on GitHub
Deep Wiki
Context7

Autobus Bus Bundle - C&M

A PHP Extensible Service Bus

Configure your atomic jobs in order to be played by cron, queue listener or webservice.

Requirements

  • PHP 8+

Installation

Download the Bundle

composer require autobus-php/autobus-bus-bundle

Download desired queuing bundle

composer require enqueue/gps:0.10.*
composer require enqueue/sqs:0.10.*

Environment variables

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=

Configuration

Topic jobs

2 queuing systems are available:

  • With Google PubSub:

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

Cron jobs

Add the following line to your crontab:

* * * * * php bin/console autobus:cron:run

Usage

Create a job

To create a new job:

  • Create it's class, implementing Autobus\Bundle\BusBundle\Runner\RunnerInterface ; it may extend Autobus\Bundle\BusBundle\Runner\AbstractRunner
  • Declare it as a service in your bundle's services.yml, with tag bus.runner
  • Create an instance from the web UI
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names