Download the PHP package tinywan/nacos-sdk-php without Composer
On this page you can find all versions of the php package tinywan/nacos-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package nacos-sdk-php
Nacos-Sdk-PHP
Nacos-Sdk-PHP
Nacos-Sdk-PHP for PHP client allows you to access Nacos OpenAPI. Open API Guide
Requirements
- PHP ^7.0
Installation
Getting Started
if nacos.core.auth.enabled=false
Use Namespace
Listener Config
Register an instance to the service
API
Request Options
- setNamespace
- string $namespace
-
setTimeout
- int $timeout
Config API
- int $timeout
- getConfig
- string $dataId
- string $group = NacosClient::DEFAULT_GROUP
- publishConfig
- string $dataId
- string $group
- $content
- removeConfig
- string $dataId
- string $group = NacosClient::DEFAULT_GROUP
-
listenConfig
- array $configs
- int $timeout = 30
Naming API
- createInstance
- ServiceInstance $instance
- deleteInstance
- string $serviceName
- string $ip
- int $port
- string $clusterName = null
- string $namespaceId = null
- updateInstance
- ServiceInstance $instance
- getInstanceList
- string $serviceName
- string $namespaceId = null
- array $clusters = []
- bool $healthyOnly = false
- getInstance
- string $serviceName
- string $ip
- int $port
- string $namespaceId = null
- string $cluster = null
- bool $healthyOnly = false
- sendInstanceBeat
- string $serviceName
- BeatInfo $beat
PHPUnit Test
NacosClientTest
- phpunit 调用命令行测试PHPUnit
- --bootstrap src/Nacos/NacosClient.php 指示PHPUnit命令行测试在测试之前执行 include src/Nacos/NacosClient.php
- tests/NacosClientTest.php 指示PHPUnit命令行测试要执行的测试 NacosClientTest 类声明在 tests/NacosClientTest.php
- http://www.phpunit.cn/getting-started.html
NacosConfig
NacosNaming
Other
Docker Composer
Git Tag
All versions of nacos-sdk-php with dependencies
PHP Build Version
Package Version
The package tinywan/nacos-sdk-php contains the following files
Loading the files please wait ....