PHP code example of qpaas / registry-client

1. Go to this page and download the library: Download qpaas/registry-client 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/ */

    

qpaas / registry-client example snippets


$server = new Registry\Client\Server\Consul("192.168.0.166", 8900);
$request = new Registry\Client\Fegin($server);

# 确定返回值
# $result = $request->request("AYSaaS-mtao-eagle-user", "/getuser");

# 原生返回
$result = $request->httpSend("AYSaaS-mtao-eagle-dataflow", "/getuser");