2017 © Pedro Peláez
 

library queue

image

bbqueue/queue

  • Saturday, August 6, 2016
  • by WyriHaximus
  • Repository
  • 1 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-meat

WIP Queue abstraction library, (*1)

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

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();

The Versions