PHPackages                             zhwei/nacos-sdk-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. [API Development](/categories/api)
4. /
5. zhwei/nacos-sdk-php

ActiveLibrary[API Development](/categories/api)

zhwei/nacos-sdk-php
===================

Nacos PHP Client

181523[1 PRs](https://github.com/zhwei/nacos-sdk-php/pulls)PHPCI failing

Since Apr 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zhwei/nacos-sdk-php)[ Packagist](https://packagist.org/packages/zhwei/nacos-sdk-php)[ RSS](/packages/zhwei-nacos-sdk-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#nacos-sdk-php)

A PHP implementation of Nacos OpenAPI.

see:

Required
--------

[](#required)

- PHP ^7.0

Install
-------

[](#install)

```
composer require zhwei/nacos-sdk-php
```

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

[](#getting-started)

```
use Nacos\NacosClient;

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

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

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

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1446459?v=4)[ZHANG Wei](/maintainers/zhwei)[@zhwei](https://github.com/zhwei)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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