PHPackages                             fsth/syar - 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. fsth/syar

ActiveLibrary

fsth/syar
=========

yar base on worker

v0.3.5(8y ago)41213MITPHP

Since Jan 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/findsomething/syar)[ Packagist](https://packagist.org/packages/fsth/syar)[ RSS](/packages/fsth-syar/feed)WikiDiscussions master Synced 1mo ago

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

syar
----

[](#syar)

### 说明

[](#说明)

1. 用swoole+yar实现了一个简单的rpc调用 目前只实现了单次调用(数据解析部分借鉴了 thx)
2. tcp 初步实现了一个类似的rpc调用

### 使用方法

[](#使用方法)

- 启动服务端: bin/server run|start|stop|restart config/server.php
- 启动带tcp与http的服务端 : bin/server run|start|stop|restart config/multi-server.php

### 测试

[](#测试)

http

```
$client = new \Yar_client("http://127.0.0.1:9503/?service=TestService");
$params = array('hello' => 'world');
$result = $client->giveBack($params);

```

tcp

```
$client = new \FSth\SYar\Client\Client('127.0.0.1', '9504', 'TestService');
$result = $client->giveBack(['hello' => 'world']);

```

### changelog

[](#changelog)

- 2017-03-17 v0.1.4

```
add rpc with tcp protocol

```

- 2017-05-15 v0.2.0

```
add cmd Ø

```

- 2017-07-06 v0.3.0

```
add zipKin support

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~26 days

Total

13

Last Release

3078d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1def6e3c66a36c047a170a8256861116c2f35fc033b0bca2e8049f632b23eb75?d=identicon)[qiqisan](/maintainers/qiqisan)

---

Top Contributors

[![findsomething](https://avatars.githubusercontent.com/u/3618101?v=4)](https://github.com/findsomething "findsomething (44 commits)")

---

Tags

rpcswooletcpyar

### Embed Badge

![Health badge](/badges/fsth-syar/health.svg)

```
[![Health](https://phpackages.com/badges/fsth-syar/health.svg)](https://phpackages.com/packages/fsth-syar)
```

PHPackages © 2026

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