PHPackages                             zhaqq/fast-dubbo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. zhaqq/fast-dubbo

ActiveLibrary

zhaqq/fast-dubbo
================

v0.2.0(7y ago)411PHPPHP &gt;=7.1

Since Jan 7Pushed 7y agoCompare

[ Source](https://github.com/viliy/fastDuboo)[ Packagist](https://packagist.org/packages/zhaqq/fast-dubbo)[ RSS](/packages/zhaqq-fast-dubbo/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (6)Used By (0)

Dubbo for FastD
===============

[](#dubbo-for-fastd)

[Docs](https://www.zhaqq.top/posts/8)

关于php swoole请求dubbo的案例实在太少，长连接的案例更少，或者实现方式个人不是很喜欢，所以查阅了下资料，写了一个swoole下长连接请求dubbo的案

!&gt; 写着写着感觉要成服务发现了

功能
--

[](#功能)

### 1. zookeeper 定时缓存进程

[](#1-zookeeper-定时缓存进程)

已实现，

> todo: 后续应该需要的实现的
>
> > 考虑zookeeper-&gt;watch() 实时更新节点 动态调用zookeeper进程更新节点

### 2. swoole\_client 同步客户端

[](#2-swoole_client-同步客户端)

已实现

### 3. swoole\_client 异步客户端

[](#3-swoole_client-异步客户端)

后续完善基本是需要使用到异步客户端的，时间有限

> todo
>
> > 心跳 释放 重连

### 4. rpc 请求方式

[](#4-rpc-请求方式)

已实现

```
// $service  为dubbo服务昵称 config/duboo.php,projects下键值

$data = swoole_client_duboo()->$service($params)
```

使用
--

[](#使用)

install

```
composer require zhaqq/fast-dubbo
```

### usage FastD

[](#usage-fastd)

- 配置

```
cp vendor/zhaqq/fast-dubbo/src/Config/dubbo.php Config/dubbo.php
```

vim config/app.php

```
    'services' => [
        \FastD\ServiceProvider\CacheServiceProvider::class,
        \FastD\ServiceProvider\LoggerServiceProvider::class,
        \FastD\ServiceProvider\RouteServiceProvider::class,

        // add Dubbo
        \Zhaqq\FastDubbo\Providers\DubboServiceProvider::class,
    ],
```

vim config/Server.php

```
    'processes' => [
        // add
       Zhaqq\FastDubbo\Process\StorageProcess::class
    ],
```

- usage

```

    // use for helpers
    $data = swoole_invoke_to_json($provider_name, $params);

    // or
    $data = swoole_client_duboo()->$provider_name($params);
    return \Zhaqq\FastDubbo\Tools\Json::decode($data);

    // or
    $data = swoole_client_duboo()->invoke($provider_name, $params);
    return \Zhaqq\FastDubbo\Tools\Json::decode($data);

```

### other

[](#other)

```
require __DIR__ . '/vendor/autoload.php';

// todo
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

5

Last Release

2666d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f14694b4665d82d319b5a9321824d9b23174039ec67fa44098b64e9d32e7cf0?d=identicon)[viliy](/maintainers/viliy)

---

Top Contributors

[![viliy](https://avatars.githubusercontent.com/u/22161786?v=4)](https://github.com/viliy "viliy (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zhaqq-fast-dubbo/health.svg)

```
[![Health](https://phpackages.com/badges/zhaqq-fast-dubbo/health.svg)](https://phpackages.com/packages/zhaqq-fast-dubbo)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[teamtnt/tntsearch

A fully featured full text search engine written in PHP

3.2k3.0M28](/packages/teamtnt-tntsearch)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[pdffiller/qless-php

PHP Bindings for qless

29113.2k1](/packages/pdffiller-qless-php)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
