Download
Download Latest
Version Support Policy
Documentation
Documentation Home
Tutorial
Project
Governance
Branding
License
GitHub Repository
Community
Contribute to PHP
Online Communities
Events | Conferences
Mailing Lists
PHP 8.5
All Releases
Search docs
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Exceptions
Generators
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Filesystem Security
Database Security
Error Reporting
Using Register Globals
User Submitted Data
Magic Quotes
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Safe Mode
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Credit Card Processing
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Yar
PHP Manual
PHP Manual
»
Web 服务
»
Yar
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
— 检索异常的类型
↑
and
↓
to navigate •
Enter
to select •
Esc
to close •
/
to open
Press
Enter
without selection to search using Google