PHPackages                             cocoyo/nacos - 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. cocoyo/nacos

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

cocoyo/nacos
============

nacos hyperf sdk

v1.0.0(5y ago)131MITPHPPHP &gt;=7.2

Since May 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ningge123/nacos)[ Packagist](https://packagist.org/packages/cocoyo/nacos)[ RSS](/packages/cocoyo-nacos/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (8)Versions (2)Used By (0)

Nacos 协程客户端
===========

[](#nacos-协程客户端)

Nacos服务管理平台 hyperf 框架 SDK

安装
==

[](#安装)

```
composer require cocoyo/nacos

```

使用
==

[](#使用)

- 获取对应 nacos 客户端：

```
use Cocoyo\Nacos\Config;
use Hyperf\Guzzle\ClientFactory;
use Hyperf\Utils\ApplicationContext;

$container = ApplicationContext::getContainer();
$clientFactory = $container->get(ClientFactory::class);

$consulServer = 'http://127.0.0.1:8848';
$config = new Config(function () use ($clientFactory, $consulServer) {
    return $clientFactory->create([
        'base_uri' => $consulServer,
    ]);
});

$config->publish($options);
```

更多示例请查看单元测试

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

2178d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bccd40a512d8c9e9b15c8155bd7ef1ee24e100629209df858483812fbe4a03a?d=identicon)[ningge123](/maintainers/ningge123)

---

Tags

phphyperf

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cocoyo-nacos/health.svg)

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

PHPackages © 2026

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