2017 © Pedro Peláez
 

library request

A helper to validate and build query criteria for MongoDB.

image

baohan/request

A helper to validate and build query criteria for MongoDB.

  • Thursday, September 22, 2016
  • by baohanddd
  • Repository
  • 1 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 30 % Grown

The README.md

swoole-gearman

A job dispatcher based on swoole, (*1)

Install

Install swoole first., (*2)

composer update baohan/swoole-job

How

Quick start, (*3)


$router = new \baohan\SwooleJob\Router(); $router->setPrefix("\\App\\Job\\"); $router->setExecutor("execute"); $router->setDecode(function($data) { return json_decode($data, true); }); $serv = new \baohan\SwooleJob\Server($router); $serv->setSwoolePort(9505); // custom callback event $serv->setEvtStart(function($serv) { echo "server start!" . PHP_EOL; }); $serv->start();

Configure

Event callbacks, (*4)

The Versions

22/09 2016

dev-master

9999999-dev

A helper to validate and build query criteria for MongoDB.

  Sources   Download

MIT

The Requires