mithunsatheesh/php-drpc

Storm DRPC 客户端,用于php。

v0.1 2023-02-08 03:58 UTC

This package is auto-updated.

Last update: 2024-09-15 20:12:53 UTC


README

基于 thrift 库编写的 php drpc 客户端,用于连接在 storm 上运行的 drpc 架构。

如何使用

推荐的安装方法是使用 Composer。运行以下命令来安装软件包并将其添加到项目的 composer.json 文件中的需求项

composer require mithunsatheesh/php-drpc

创建一个要使用的 drpc 客户端实例

// Require the Composer autoloader.
require 'vendor/autoload.php';

// Instantiate the DRPC client.
$drpc = new DRPC("xxx.xxx.x.xx",3772,NULL);
$result = $drpc->execute("CallFunctionName",$params);

仍然不工作吗?

如果您仍然遇到问题,请给我发邮件说明问题