bbqueue / queue
dev-master
2016-08-06 11:31 UTC
Requires
- php: >=5.5
- aws/aws-sdk-php: ~2.7
- bunny/bunny: ^0.2.3
- chrisboulton/php-resque: ~1.2
- clue/redis-react: ^0.5.1
- iron-io/iron_mq: ~1.5
- jms/metadata: ~1.5
- pda/pheanstalk: ~3.0
- react/promise: ^2.2
Requires (Dev)
- phpunit/phpunit: ~4.0
- rskuipers/php-assumptions: ^0.3.0
- satooshi/php-coveralls: ^0.6
- squizlabs/php_codesniffer: ~1.0
- vectorface/dunit: ~2.0
This package is auto-updated.
Last update: 2024-11-05 05:44:38 UTC
README
WIP Queue abstraction library
Usefull links
https://registry.hub.docker.com/u/pataquets/gearmand/ https://registry.hub.docker.com/u/kdihalas/beanstalkd/ https://registry.hub.docker.com/u/platformer/resque-1-x-stable/
Thought examples
<?php require 'vendor/autoload.php'; $queue = new Queue(new Backend\Iron()); $queue->prepare(new FetchAchievementsJob())->then(new JobCollectionJob([ FetchDescriptionJob::class, FetchIconJob::class, FetchTitleJob::class, ]))->enqueue(); $queue->prepare(new FetchPackagesJob())-> conditional(new MatchStringCondition('package.vendor', 'WyriHaximus'))-> then(new JobCollectionJob([ StorePackageJob::class, AnaliseDependenciesJob::class, UpdateProjectJob::class, ]))-> else(StorePackageJob::class)-> end()-> enqueue();