消息队列的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启动配置文件,必须返回Pimple\Container
类型的配置对象,情参考example/bootstrap.php文件。
请参考example/Example1Worker.php。
请参考src/IWorker.php。
docker-compose up
docker exec YOUR_CONTAINER_ID php example/put_message.php
See CHANGELOG.md.
MIT.