PHPackages                             caasdata/tars-registry - 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. caasdata/tars-registry

ActiveLibrary

caasdata/tars-registry
======================

tars的php主控寻址相关

0.1.6(7y ago)23152PHPPHP &gt;=5.3

Since Dec 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/caasdata/tars-registry)[ Packagist](https://packagist.org/packages/caasdata/tars-registry)[ RSS](/packages/caasdata-tars-registry/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (2)Used By (2)

主控寻址的模块
-------

[](#主控寻址的模块)

1、模块说明
------

[](#1模块说明)

```
	tars平台的tarsregistry服务提供服务发现的功能。
        本模块为php提供主控寻址的能力(服务发现)。

```

2、文件说明：
-------

[](#2文件说明)

```
├── composer.json
├── src
│   ├── client  //请求主控服务的client代码
│   │   ├── Code.php
│   │   ├── CodeRegistry.php
│   │   ├── CommunicatorConfig.php
│   │   ├── CommunicatorFactory.php
│   │   ├── Communicator.php
│   │   ├── CommunicatorRegistry.php
│   │   ├── Consts.php
│   │   ├── RequestPacket.php
│   │   ├── RequestPacketRegistry.php
│   │   ├── ResponsePacket.php
│   │   ├── ResponsePacketRegistry.php
│   │   ├── TUPAPIWrapper.php
│   │   └── TUPAPIWrapperRegistry.php
│   ├── EndpointF.php       //struct EndpointF 的php类
│   ├── QueryFServant.php   //直接请求主控服务
│   ├── QueryFWrapper.php   //优先从内存寻找服务地址，其次从主控寻址
│   ├── RouteTable.php      //在swoole table里保存服务地址
│   └── tars   //协议文件
│       ├── EndpointF.tars
│       └── QueryF.tars
└── tests
    └── demo.php

```

3、使用示例：
-------

[](#3使用示例)

```
        //从tarsregistry服务寻找服务地址
        $wrapper = new \Tars\registry\QueryFWrapper("tars.tarsregistry.QueryObj@tcp -h 172.16.0.161 -p 17890",1,60000);
        $result = $wrapper->findObjectById("PHPTest.PHPServer.obj");
        var_dump($result);

        //优先从内存寻找服务地址，其次从主控寻址
        \Tars\registry\RouteTable::getInstance();
        $result = \Tars\registry\RouteTable::getRouteInfo("PHPTest.PHPServer.obj");
        echo "result:\n";
        var_dump($result);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

2698d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46128427?v=4)[caasdata](/maintainers/caasdata)[@caasdata](https://github.com/caasdata)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/caasdata-tars-registry/health.svg)

```
[![Health](https://phpackages.com/badges/caasdata-tars-registry/health.svg)](https://phpackages.com/packages/caasdata-tars-registry)
```

PHPackages © 2026

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