PHPackages                             caasdata/tars-report - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. caasdata/tars-report

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

caasdata/tars-report
====================

tars进行keep-alive上报的模块

0.1.1(7y ago)1285PHPPHP &gt;=5.3

Since Dec 25Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

进行keepAlive上报的组件

1、组件说明

```
	tarsphp框架在master进程启动的时候会上报服务存活状态(主进程存活&管理进程存活)。
	在第一个worker进程启动的时候，会开启一个timer来定时上报存活状态。

```

2、文件说明：

```
	├── composer.json
	├── src
	│ ├── NodeF.tars //协议文件
	│ ├── ServerFAsync.php // 异步上报
	│ ├── ServerFSync.php // 同步上报
	│ └── ServerInfo.php  //ServerInfo

```

3、使用实例(假如服务为 PHPTest.test.obj)：

```
        $serverInfo = new ServerInfo();
        $serverInfo->adapter = 'PHPTest.test.objAdapter';
        $serverInfo->application = 'PHPTest';
        $serverInfo->serverName = 'test';
        $serverInfo->pid = $masterPid;

        $serverF = new ServerFSync($host, $port, $objName);
        $serverF->keepAlive($serverInfo); //主进程存活

        $adminServerInfo = new ServerInfo();
        $adminServerInfo->adapter = 'AdminAdapter';
        $adminServerInfo->application = 'PHPTest';
        $adminServerInfo->serverName = 'test';
        $adminServerInfo->pid = $masterPid;
        $serverF->keepAlive($adminServerInfo);//管理进程存活

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

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

2693d 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-report/health.svg)

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

PHPackages © 2026

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