1. Go to this page and download the library: Download tinywan/nacos library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tinywan / nacos example snippets
composer
use Tinywan\Nacos\Nacos;
$nacos = new Nacos();
$login = $nacos->auth->login('nacos', 'nacos');
var_dump($login->getBody()->getContents());
use Tinywan\Nacos\Nacos;
$nacos = new Nacos();
$response = $nacos->config->get('database', 'DEFAULT_GROUP');
if (false === $response) {
var_dump($nacos->config->getMessage());
}