Motan is a cross-language remote procedure call(RPC) framework for rapid development of high performance distributed services.
This project is the PHP Motan implementation. Provides PHP motan client.
composer require
The quick start gives very basic example of running client and server on the same machine. For the detailed information about using and developing Motan, please jump to Documents. the demo case is in the main/ directory
TBD
- demo
define('D_CONN_DEBUG', '10.211.55.3:1234');
$url_str = 'motan2://127.0.0.1:9983/com.weibo.motan.status?group=idevz-test-static';
$url = new \Motan\URL($url_str);
$cx = new \Motan\Client($url);
$rs = $cx->show_batch(['name'=>'idevz']);
if (null === $rs) {
print_r($cx->getResponseException());
}
print_r($cx->getResponseHeader());
print_r($cx->getResponseMetadata());
print_r($rs);
TBD
TBD
- 周晶(@idevz)
- 郭万韬
- 丁振凯
Motan is released under the Apache License 2.0.