Skip to content
PHP extensible service bus
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
docker
src
tests
var
web
.gitignore
README.md
autobus-logo.png
composer.json
composer.lock
docker-compose.override.yml.dist
docker-compose.yml
grumphp.yml
phpunit.xml.dist

README.md

Autobus - PHP service BUS

Autobus Logo

Install

composer create-project autobus-php/autobus --stability dev

# If needed, you may customize Docker Compose config
cp docker-compose.override.yml.dist docker-compose.override.yml

docker-compose up

docker-compose exec php bin/console d:s:u --force

# Load sample data
docker-compose exec php bin/console doctrine:fixtures:load

Running async jobs

Queue jobs

TODO

Cron jobs

Add the following line to your crontab:

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

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

Requirements

  • PHP 7+
You can’t perform that action at this time.