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.
- Host: GitHub
- URL: https://github.com/hyperf/nacos
- Owner: hyperf
- License: mit
- Created: 2020-07-19T16:34:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-27T15:15:42.000Z (11 months ago)
- Last Synced: 2025-03-29T06:03:28.847Z (10 months ago)
- Language: PHP
- Size: 160 KB
- Stars: 22
- Watchers: 5
- Forks: 14
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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());
```