Skip to content

消息队列的Worker守护进程,目前支持beanstalkd。

Notifications You must be signed in to change notification settings

codeages/plumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1ef4f3f · Sep 26, 2018

History

50 Commits
Aug 12, 2017
Aug 28, 2017
Sep 8, 2017
Sep 8, 2017
Jan 24, 2017
Aug 7, 2017
Aug 12, 2017
Aug 7, 2017
Sep 8, 2017
Sep 8, 2017
Jan 24, 2017
Sep 26, 2018
Sep 27, 2017
Jan 24, 2017
Aug 15, 2017
Aug 2, 2017

Repository files navigation

Plumber

消息队列的Worker守护进程,目前支持beanstalkd。

运行环境

  • PHP >= 5.4.1
  • Swoole >= 1.7.18
  • Linux / Mac OSX

安装

composer require codeages/plumber

使用

Plumber 0.6.0

Usage:
  bin/plumber (run|start|restart|stop)  [--bootstrap=<file>]

Options:
  -h|--help    show this
  -b <file> --bootstrap=<file>  Load configuration file [default: plumber.php]

启动

bin/plumber start -b bootstrap-file-path   # `bootstrap-file-path`为启动配置文件路径

重启

bin/plumber restart -b bootstrap-file-path

停止

bin/plumber stop -b bootstrap-file-path

Bootstrap启动配置文件说明

Bootstrap启动配置文件,必须返回Pimple\Container类型的配置对象,情参考example/bootstrap.php文件。

Worker的写法

请参考example/Example1Worker.php

Worker执行的返回值

请参考src/IWorker.php

Docker

启动

docker-compose up

Example Put Message

docker exec YOUR_CONTAINER_ID php example/put_message.php

Changelog

See CHANGELOG.md.

License

MIT.

About

消息队列的Worker守护进程,目前支持beanstalkd。

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published