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

ActiveLibrary

seffeng/nacos
=============

PHP extension nacos

v0.1.3(2y ago)01.5k↓100%MITPHPPHP &gt;=7.1.3

Since Aug 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/seffeng/php-nacos)[ Packagist](https://packagist.org/packages/seffeng/nacos)[ Docs](https://github.com/seffeng/php-nacos)[ RSS](/packages/seffeng-nacos/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

nacos
-----

[](#nacos)

### 安装

[](#安装)

```
# 安装
$ composer require seffeng/nacos
```

### 目录说明

[](#目录说明)

```
├───src
│   │   Nacos.php
│   ├───Exceptions
│   │       NacosException.php
│   └───Handlers
│           Configs.php
│           Instances.php
│           Log.php
├───tests
│       NacosConfig.php
│       NacosInstance.php

```

### 示例

[](#示例)

```
/**
 * Test
 */
class NacosConfig
{
    /**
     * 获取配置
     */
    public function testGet()
    {
        try {
            $conf = $this->getConfig()->getConfig();
            var_dump($conf);
        } catch (\Exception $e) {
            throw $e;
        }
    }

    /**
     * 监听配置
     */
    public function testListener()
    {
        try {
            $conf = $this->getConfig()->listenerConfig();
            var_dump($conf);
        } catch (\Exception $e) {
            throw $e;
        }
    }

    private function getConfig()
    {
        $host = 'http://nacos.io';
        $nacos = new Nacos($host, 'nacos', 'nacos');
        $config = new Configs($nacos, 'test-01');
        return $config;
    }
}
```

### 方法

[](#方法)

类方法说明ConfigsgetConfig()获取配置ConfigslistenerConfig监听配置ConfigspushConfig发布配置ConfigsdeleteConfig删除配置ConfigsgetHistoryAccurate查询历史版本ConfigsgetHistoryDetail查询历史版本详情ConfigsgetHistoryPrevious查询配置上一版本信息Instancesregister注册实例Instancesdetail实例详情Instancesbeat发送实例心跳Instancesunregister注销实例项目依赖
----

[](#项目依赖)

依赖仓库地址备注guzzlehttp/guzzle无monolog/monolog无### 备注

[](#备注)

1、更多示例请参考 tests 目录下测试文件；

2、[更多文档：nacos.io](https://nacos.io)。

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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

Total

4

Last Release

1011d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b3d8cc986a1ad37a55169b11812fea1cae31430dd8dbe1b3436dc58cc885bd?d=identicon)[seffeng](/maintainers/seffeng)

---

Top Contributors

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

---

Tags

phplaravelyii2nacosseffeng

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[dragon-code/support

Support package is a collection of helpers and tools for any project.

238.7M100](/packages/dragon-code-support)

PHPackages © 2026

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