Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motan-PHP

License

Overview

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.

Quick Start

Installation

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

Motan server

TBD

Motan client

  1. 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);

Use agent.

TBD

Documents

TBD

Contributors

  • 周晶(@idevz)
  • 郭万韬
  • 丁振凯

License

Motan is released under the Apache License 2.0.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages