Better PHP Documentation
opinionated
Open main menu
Get Started
Documentation
Community
Training
Better PHP Documentation
Close menu
Get Started
Documentation
Community
Training
Log in
切换语言:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
Yet Another RPC Framework
简介
Yar 是一个轻量级, 高效的 RPC 框架, 它提供了一种简单方法来让 PHP 项目之间可以互相远程调用对方的本地方法. 并且 Yar 也提供了并行调用的能力. 可以支持同时调用多个远程服务的方法.
安装/配置
需求
安装
运行时配置
资源类型
预定义常量
示例
Yar_Server
— The Yar_Server class
Yar_Server::__construct
— 注册 HTTP RPC Server
Yar_Server::handle
— 启动HTTP RPC Server
Yar_Client
— Yar_Client 类
Yar_Client::__call
— 调用远程服务
Yar_Client::__construct
— 创建一个客户端实例
Yar_Client::setOpt
— 设置调用的配置
Yar_Concurrent_Client
— Yar_Concurrent_Client 类
Yar_Concurrent_Client::call
— 注册一个并行的服务调用
Yar_Concurrent_Client::loop
— 发送所有注册的并行调用
Yar_Concurrent_Client::reset
— Clean all registered calls
Yar_Server_Exception
— Yar_Server_Exception 类
Yar_Server_Exception::getType
— 检索异常的原始类型
Yar_Client_Exception
— Yar_Client_Exception 类
Yar_Client_Exception::getType
— 检索异常的类型
发现了问题?
了解如何改进此页面
•
提交拉取请求
•
报告一个错误
+
添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
0
pcntl_sigtimedwait
Waits for signals, with a timeout
0
similar_text
Calculate the similarity between two strings
0
boolval
Get the boolean value of a variable
0
curl_multi_close
Close a set of cURL handles
0
imap_body
Read the message body
0
mb_strpos
Find position of first occurrence of string in a string
0
pg_send_prepare
Sends a request to create a prepared statement with the given parameters, without waiting for completion
0
swoole_native_socket_bind
0
Arr::prependKeysWith
0
zend_version
Gets the version of the current Zend engine
^