php-nacos icon indicating copy to clipboard operation
php-nacos copied to clipboard

阿里巴巴nacos配置中心-PHP客户端

Results 17 php-nacos issues
Sort by recently updated
recently updated
newest added

When querying the instance list, services other than the default group cannot be queried, so this PR is issued!

在php.net的protobuf扩展列表中,没有.dll文件来支持windows环境

此方法会遍历$instanceJson参数并将值渲染到调用此方法的子类属性,如果$instanceJson和子类的属性不匹配,则会报找不到方法的错误 **原方法如下** ```php public static function decode($instanceJson) { $instance = new static(); foreach (json_decode($instanceJson) as $propertyName => $propertyValue) { $instance->{"set" . ucfirst($propertyName)}($propertyValue); } return $instance; } ``` **方法改进** ```php public...

``` NacosConfig::setHost("http://127.0.0.1:8848/"); // 配置中心地址 //$healthyOnly值需要传递字符串的true,否则会导致传参的时候被http_build_query转为1导致nacos服务不识别此参数 $instances = NamingClient::listInstances("test-service", "true"); ``` nacos api地址: https://nacos.io/zh-cn/docs/open-api.html 如果获取不到健康实例请注意下

nacos有密码,在php-nacos里没找到设置用户名和密码的地方

fixed: 忽略这些属性,增加忽略自身项