Skip to content

fsotsk/gearman-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gearman worker and client wrapper library

  • require php >= 5.6, 7
  • php-pecl-gearman
  • gearman-job-server

Usage

Test.php

  class Test
  {
      public function ping($ping)
      {
          return "$ping:pong";
      }
  }

test-worker.php (cli)

$t = new \Deep\Gearman\Worker(new Test(), ['localhost']);
$t->run();

test-client.php

$t = new \Deep\Gearman\Client(new Test(), ['localhost']);
echo $t->ping('hello');

About

Gearman worker and client wrapper library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages