PHPackages                             suntekcorps/hyperf-log-client - 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. suntekcorps/hyperf-log-client

ActiveLibrary

suntekcorps/hyperf-log-client
=============================

suntekcorps

v0.0.6(5y ago)2119PHPPHP &gt;=7.2

Since Mar 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Erugihs/hyperf-log-client)[ Packagist](https://packagist.org/packages/suntekcorps/hyperf-log-client)[ RSS](/packages/suntekcorps-hyperf-log-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

suntekcorps log client
======================

[](#suntekcorps-log-client)

基于 hyperf/rpc-client 2.0 的客户端代码

```
composer require suntekcorps/hyperf-log-client

```

config
------

[](#config)

在/config/autoload目录里面创建文件 services.php 添加以下内容

```
return [
    'consumers' => [
        [
            'name' => 'LogServiceProvider',
            'service' => \STK\Client\Log\Base\LogServiceProviderInterface::class,
            'protocol' => 'jsonrpc',
            'registry' => [
                'protocol' => 'consul',
                'address' => env('CONSUL_URI', 'http://190.168.0.201:8500'),
            ],
            'options' => [
                'connect_timeout' => 5.0,
                'recv_timeout' => 5.0,
                'settings' => [
                    'open_eof_split' => true,
                    'package_eof' => "\r\n",
                    'package_max_length' => 1024 * 1024 * 2,
                ],
            ],
        ]
    ],
];
```

使用
--

[](#使用)

新建类继承 STK\\Client\\Log\\LogClient, 并定义 $table 与 $casts

```
use STK\Client\Log\LogClient;

class TestModel extends LogClient
{
    //表名
    public $table = 'test_table';
    //字段
    public $casts = [
        '_id' => 'object',
        'test_key_1' => 'string',
        'test_key_2' => 'int',
    ];
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Total

6

Last Release

1843d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d64da9c8c4f12d3140a44879f412616b0f4409d668d6bfcf04bf76152538236a?d=identicon)[zjhuang@suntekcorps.com](/maintainers/zjhuang@suntekcorps.com)

---

Top Contributors

[![Erugihs](https://avatars.githubusercontent.com/u/71120455?v=4)](https://github.com/Erugihs "Erugihs (8 commits)")

### Embed Badge

![Health badge](/badges/suntekcorps-hyperf-log-client/health.svg)

```
[![Health](https://phpackages.com/badges/suntekcorps-hyperf-log-client/health.svg)](https://phpackages.com/packages/suntekcorps-hyperf-log-client)
```

PHPackages © 2026

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