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

ActiveLibrary

shishi/nacos-php
================

Nacos PHP Client

v3.0(5y ago)2261MITPHPPHP ^7.0

Since Dec 16Pushed 5y agoCompare

[ Source](https://github.com/2008shishi/nacos)[ Packagist](https://packagist.org/packages/shishi/nacos-php)[ RSS](/packages/shishi-nacos-php/feed)WikiDiscussions master Synced 5d ago

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

nacos-php
=========

[](#nacos-php)

A PHP implementation of Nacos OpenAPI.

see:

Required
--------

[](#required)

- PHP ^7.0

Install
-------

[](#install)

```
composer require shishi/nacos-php
```

Getting Started
---------------

[](#getting-started)

```
use Nacos\NacosClient;

$client = new NacosClient('localhost', 8848);

$dataId = 'abc';
$group = 'test-group';
$value = $client->getConfig($dataId, $group);
```

注意事项
----

[](#注意事项)

1.命名空间和保持ID相同，避免空间ID参数错误 2.本案例使用有问题，大家及时提出修改更正

API
---

[](#api)

### Request Options

[](#request-options)

- setNamespace
    - string $namespace
- setTimeout
    - int $timeout

### Config API

[](#config-api)

- getConfig
    - string $dataId
    - string $group = NacosClient::DEFAULT\_GROUP
- publishConfig
    - string $dataId
    - string $group
    - $content
- removeConfig
    - string $dataId
    - string $group = NacosClient::DEFAULT\_GROUP
- listenConfig
    - array $configs
    - int $timeout = 30

### Naming API

[](#naming-api)

- createInstance
    - ServiceInstance $instance
- deleteInstance
    - string $serviceName
    - string $ip
    - int $port
    - string $clusterName = null
    - string $namespaceId = null
- updateInstance
    - ServiceInstance $instance
- getInstanceList
    - string $serviceName
    - string $namespaceId = null
    - array $clusters = \[\]
    - bool $healthyOnly = false
- getInstance
    - string $serviceName
    - string $ip
    - int $port
    - string $namespaceId = null
    - string $cluster = null
    - bool $healthyOnly = false
- sendInstanceBeat
    - string $serviceName
    - BeatInfo $beat

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1978d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3f4e3efb7b948dd52793783a18f84b6f0a81f2c877597fb91d68b8fc9089e1d?d=identicon)[shishishi](/maintainers/shishishi)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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