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

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

yuandian/webman-nacos
=====================

Webman plugin yuandian/webman-nacos

v1.2.1(4w ago)119MITPHPPHP &gt;=8.1

Since Jul 16Pushed 4w agoCompare

[ Source](https://github.com/yuan-dian/webman-nacos)[ Packagist](https://packagist.org/packages/yuandian/webman-nacos)[ RSS](/packages/yuandian-webman-nacos/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (20)Versions (10)Used By (0)

webman-nacos 插件
===============

[](#webman-nacos-插件)

简介
==

[](#简介)

Webman-naocs是基于PHP开发的Webman插件生态下的Nacos客户端；

灵感来自于workbunny/webman-nacos、hyperf/config-nacos，其中的一些配置与实现都是源于其项目！

安装
==

[](#安装)

`composer require yuandian/webman-nacos`

依赖
==

[](#依赖)

如果需要配置格式是yaml，需要安装yaml扩展或者symfony/yaml库

- 安装yaml：`pecl install yaml` 【其他方式自行处理】
- 安装symfony/yaml：`composer require symfony/yaml`

特性
==

[](#特性)

- 支持配置获取
- 支持实例注册
- 支持通过注解自动注入配置
- 配置变更通过webman/channel进程间通信

使用
==

[](#使用)

- 自动注入配置类
- 配置类默认后缀`Config`，可以通过配置文件`config_suffix`参数进行修改

```
namespace app\config;

use yuandian\Tools\attribute\Alias;use yuandian\WebmanNacos\Annotation\NacosConfiguration;

#[NacosConfiguration("datasource")]
class DatasourceConfig
{
    #[Alias('host')] // 可以使用Alias注解设置别名
    public string $url;
    public string $username;
    public string $password;
}
```

- 获取配置

```
$config =  \yuandian\Container\Container::getInstance()->get(DatasourceConfig::class);
```

捐献
--

[](#捐献)

[![](./wechat.png)](./wechat.png)[![](./alipay.png)](./alipay.png)

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance88

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Every ~53 days

Recently: every ~24 days

Total

7

Last Release

29d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33216505?v=4)[yuan-dian](/maintainers/yuan-dian)[@yuan-dian](https://github.com/yuan-dian)

---

Top Contributors

[![yuan-dian](https://avatars.githubusercontent.com/u/33216505?v=4)](https://github.com/yuan-dian "yuan-dian (23 commits)")

---

Tags

phpnacoswebman

### Embed Badge

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

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

###  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)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

346132.9M112](/packages/google-cloud-core)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

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

The Roundcube Webmail suite

7.1k2.4k3](/packages/roundcube-roundcubemail)

PHPackages © 2026

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