PHP code example of phpple / php-dubbo-proxy
1. Go to this page and download the library: Download phpple/php-dubbo-proxy 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/ */
phpple / php-dubbo-proxy example snippets
use \phpple\php_dubbo_proxy\Proxy;
$service = Proxy::getService('com.phpple.service.FooService', array(
'registry' => '127.0.0.1:2181',
'version' => '1.0.0'
));
$ret = $service->bar('hello,world');
var_dump($ret);
bash
composer