verystar/nacos-php-sdk
最新稳定版本:v1.0.1
Composer 安装命令:
composer require verystar/nacos-php-sdk
包简介
The alibaba nacos SDK for php
关键字:
README 文档
README
Aliyun Nacos SDK for PHP
Install
composer require verystar/nacos-php-sdk
Or add a dependency to the composer.json
"require": {
"verystar/nacos-php-sdk": "1.0.*"
}
Run
composer update
Usage
use Very\Nacos\Client; $client = new Client([ "username"=>"***********", "password"=>"***********", "server_addr"=>"https://test.nacos.com", "namespace"=>"***********", ]); //get config $ret = $client->getConfig("test","DEFAULT_GROUP"); print_r($ret); //save config if config file not exists $client->saveConfig("test","DEFAULT_GROUP","./config/db.php");
Exception
if throw NacosException,the fetch configuration failed
License
The SDK is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 603
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-21