hella-engine / rpc-message
HellaEngine RPC message php code
1.0.6
2016-08-25 10:57 UTC
Requires
- php: >=5.0.0
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is not auto-updated.
Last update: 2025-01-02 01:18:22 UTC
README
==== is Simple Rpc message system ==== ==== Usage: $message = \hellaEngine\RPCMessage\RPCMessage::createWithRpc('schedule.schedule'); $message->setMessageBodyProperty('clientVersion', '1.2.0'); //加密形成网络消息 $messageString = \hellaEngine\RPCMessage\RPCMessageEncode::encodeMessages([$message]);; //.... //Http 请求,返回字符串 $responseString //.... $returnMessages = \hellaEngine\RPCMessage\RPCMessage::decode($responseString); =====