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

ActiveLibrary

phptars/tars-registry
=====================

tars的php主控寻址相关

0.1.7(7y ago)011.6k↓100%2[1 PRs](https://github.com/TarsPHP/tars-registry/pulls)PHPPHP &gt;=5.6

Since Sep 21Pushed 5y ago5 watchersCompare

[ Source](https://github.com/TarsPHP/tars-registry)[ Packagist](https://packagist.org/packages/phptars/tars-registry)[ RSS](/packages/phptars-tars-registry/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (5)Used By (0)

Master addressing module
------------------------

[](#master-addressing-module)

Module description
------------------

[](#module-description)

```

The tar registry service of the tar s platform provides the function of service discovery.

This module provides PHP with the ability of master addressing (service discovery).

```

Document description:
---------------------

[](#document-description)

```
├── composer.json
├── src
│   ├── client  //Client code requesting the master service
│   │   ├── 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   //Direct request for master service
│   ├── QueryFWrapper.php   //The priority is to find the service address from memory, and then from the master address
│   ├── RouteTable.php      //Save the service address in the swoole table
│   └── tars   //Protocol file
│       ├── EndpointF.tars
│       └── QueryF.tars
└── tests
    └── demo.php

```

Use example:
------------

[](#use-example)

```
        //从tarsregistryService search service address
        $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);

        //The priority is to find the service address from memory, and then from the master address
        \Tars\registry\RouteTable::getInstance();
        $result = \Tars\registry\RouteTable::getRouteInfo("PHPTest.PHPServer.obj");
        echo "result:\n";
        var_dump($result);

```

Changelog
---------

[](#changelog)

### v0.1.7 (2019-03-20)

[](#v017-2019-03-20)

- Master addressing cache interface, convenient to customize cache mode, default to use swoole table

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% 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 ~59 days

Total

4

Last Release

2559d ago

PHP version history (2 changes)0.1.4PHP &gt;=5.3

0.1.7PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf1b3ee26ddb9ebe4490a8f1bcd84a7450fa70cf0bf367fd6c267ba7d353d3fd?d=identicon)[phptars](/maintainers/phptars)

---

Top Contributors

[![meijing0114](https://avatars.githubusercontent.com/u/2072584?v=4)](https://github.com/meijing0114 "meijing0114 (7 commits)")[![copyrenzhe](https://avatars.githubusercontent.com/u/2667735?v=4)](https://github.com/copyrenzhe "copyrenzhe (2 commits)")[![danielzheng-Tencent](https://avatars.githubusercontent.com/u/60135050?v=4)](https://github.com/danielzheng-Tencent "danielzheng-Tencent (1 commits)")

### Embed Badge

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

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

###  Alternatives

[phptars/tars-server

tars的php框架

1110.9k3](/packages/phptars-tars-server)

PHPackages © 2026

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