php8.5
Home/ Manual/ reference / yar/ Yet Another RPC Framework

Yet Another RPC Framework

Yar (Yet another RPC framework) is a light, concurrent RPC framework which aims to provide a simple and easy way to do communication between PHP applications. It can also issue multiple calls to remote services concurrently.

Intro

Yar (Yet another RPC framework) is a light, concurrent RPC framework which aims to provide a simple and easy way to do communication between PHP applications. It can also issue multiple calls to remote services concurrently.

Yar is a native PHP extension rather than a userland library. It uses a compact binary protocol over HTTP, HTTPS or TCP and ships with three built-in packagers (php, json and, when built with --enable-msgpack, msgpack), so no extra packages or proxy processes are required.

The protocol is language agnostic, so services can be consumed by any language; see The Yar Protocol for the details.

Protocol Setup Constants Examples Yar-server Yar-client Yar-concurrent-client Yar-server-exception Yar-server-output-exception Yar-server-packager-exception Yar-server-protocol-exception Yar-server-request-exception Yar-client-exception Yar-client-packager-exception Yar-client-protocol-exception Yar-client-transport-exception

Source: reference/yar/book.xml · from the official PHP manual (php/doc-en)