autobus-php / autobus
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 3
Open Issues: 3
Type:project
Requires
- php: >=7.0.0
- autobus-php/autobus-bus-bundle: dev-master
- doctrine/doctrine-bundle: ^1.6
- doctrine/doctrine-fixtures-bundle: ^2.3
- doctrine/orm: ^2.5
- incenteev/composer-parameter-handler: ^2.0
- jms/serializer-bundle: ^2.0
- mtdowling/cron-expression: ^1.2
- sensio/distribution-bundle: ^5.0.19
- sensio/framework-extra-bundle: ^3.0.2
- symfony/monolog-bundle: ^3.1.0
- symfony/polyfill-apcu: ^1.0
- symfony/swiftmailer-bundle: ^2.3.10
- symfony/symfony: 3.3.*
- twig/twig: ^1.0||^2.0
Requires (Dev)
- phpro/grumphp: ^0.11.6
- phpunit/phpunit: ^6.3
- sensio/generator-bundle: ^3.0
- squizlabs/php_codesniffer: ^3.0
- symfony/phpunit-bridge: ^3.0
This package is auto-updated.
Last update: 2024-11-13 08:39:42 UTC
README
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 extendAutobus\Bundle\BusBundle\Runner\AbstractRunner
- Declare it as a service in your bundle's
services.yml
, with tagbus.runner
- Create an instance from the web UI
Requirements
- PHP 7+