eschrade /async_pack
该库被用作Jetty PHP实现与ActiveMQ的一部分。它主要是一个序列化/反序列化机制,使用Stomp。
0.0.2
2018-01-29 13:55 UTC
Requires
- container-interop/container-interop: ^1.1
- fusesource/stomp-php: ^2.1
- phpunit/phpunit: ^4.1.0.0
- psr/http-message: ^1.0
This package is not auto-updated.
Last update: 2024-09-14 19:04:11 UTC
README
这是一个用于我构建的Jetty/ActiveMQ/PHP服务器的简单代码打包工具。你可以在ESchrade上找到一些信息,尽管我还没有写出来。该软件的一个特性是构建一个开箱即用的集成工作队列。这个库就是为了与它配合使用而设计的。
有两个组件。客户端和服务器。客户端用于你的应用程序中需要排队和异步执行的工作。使用它相当简单。
// The class to be executed by the server
class MyJob
{
protected $param;
public function __construct($param) {
$this->param = $param;
}
public function execute()
{
// Do something with $this->param
}
}
// Then, in your client program:
// to be continued... Restarting Windows...