PHPackages                             jarviscdr/logc-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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. jarviscdr/logc-client

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

jarviscdr/logc-client
=====================

LogC的客户端:使用API|WS上报日志文件。

0.1.5(2y ago)1512PHP

Since Feb 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jarviscdr/logc-client)[ Packagist](https://packagist.org/packages/jarviscdr/logc-client)[ RSS](/packages/jarviscdr-logc-client/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (2)

LogClient 日志中心客户端
=================

[](#logclient-日志中心客户端)

当前客户端是用于适配LogC日志中心的客户端，用于快捷上报日志使用；

安装
--

[](#安装)

```
composer require jarviscdr/logc-client
```

使用
--

[](#使用)

```
// 创建实例
Client::getInstance()
    ->setApiClient('http://127.0.0.1:10001', 1.0) // 设置服务地址和请求超时时间
    ->setProject('测试')                          // 设置默认项目名称(也可以在后续上报日志时指定项目名称)
    ->setThrowException(false);                  // 设置是否抛出异常

// 上报日志
Client::getInstance()->report('订单请求异常', ['order'], Constant::DEBUG, 'test', Client::REPORT_TYPE_API);

// 使用配套函数上报日志
logc(['err' => -1, 'data' => '订单请求异常', 'oid' => 1234567890], 'order,alipay', Constant::DEBUG);
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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

Total

3

Last Release

782d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jarviscdr-logc-client/health.svg)

```
[![Health](https://phpackages.com/badges/jarviscdr-logc-client/health.svg)](https://phpackages.com/packages/jarviscdr-logc-client)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M164](/packages/spatie-laravel-health)[spatie/flare-client-php

Send PHP errors to Flare

177161.5M23](/packages/spatie-flare-client-php)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

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