2017 © Pedro Peláez
 

project autobus

image

autobus-php/autobus

  • Friday, September 22, 2017
  • by aloupfor
  • Repository
  • 5 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Autobus - PHP service BUS

Autobus Logo, (*1)

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, (*2)

Cron jobs

Add the following line to your crontab:, (*3)

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

Create a job

To create a new job:, (*4)

  • 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+

The Versions