Skip to content

creativecirclemedia/faktory_worker_php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currently very much WIP!

Install via composer

composer require basekit/faktory_worker_php

Add jobs

$client = new FaktoryClient($faktoryHost, $faktoryPort);
$job = new FaktoryJob($id, $type, $args);
$client->push($job);

Process jobs

$client = new FaktoryClient($faktoryHost, $faktoryPort);
$worker = new FaktoryWorker($client);
$worker->register('somejob', function ($job) {
    echo "You got the job buddy!\n";
    var_dump($job);
});

$worker->setQueues(['critical', 'default', 'bulk']);
$worker->run();

Releases

No releases published

Packages

No packages published

Languages

  • PHP 98.8%
  • Dockerfile 1.2%