An open API service indexing awesome lists of open source software.

https://github.com/hyperf/nacos

A PHP implementation of Nacos OpenAPI, particularly adapt for Hyperf.
https://github.com/hyperf/nacos

Last synced: 10 months ago
JSON representation

A PHP implementation of Nacos OpenAPI, particularly adapt for Hyperf.

Awesome Lists containing this project

README

          

# Nacos SDK

## 安装

```shell
composer require hyperf/nacos
```

## 使用

```php
'nacos',
'password' => 'nacos',
'guzzle_config' => [
'headers' => [
'charset' => 'UTF-8',
],
],
]));

$response = $application->auth->login('nacos', 'nacos');
$result = Json::decode((string) $response->getBody());

$response = $application->config->get('hyperf-service-config', 'DEFAULT_GROUP');
$result = Json::decode((string) $response->getBody());
```