# laruence/yar

Light, concurrent RPC framework for PHP & C

Repository: https://github.com/laruence/yar
Canonical: https://ross.abutalabs.com/products/yar
Language: C
License: NOASSERTION
License Family: other
Topics: yar, rpc-framework, php, msgpack, c, json, concurrency
Last push: 2026-08-18T16:25:25+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 64, longevity 100
- inputs: {"age_days": 5192, "days_push": 15, "days_rel": 27, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1435, forks 317 (observed 2026-08-28T04:04:43.408284+00:00)

## What it is
Yar is a lightweight, concurrent RPC framework implemented as a native PHP extension (written in C), supporting HTTP, HTTPS, and TCP transports with pluggable packagers (PHP, JSON, Msgpack). It enables fast RPC communication between PHP applications and cross-language interop with C, Java, and Lua Yar implementations.

## Use cases
- call remote PHP services over RPC
- make multiple RPC calls concurrently from PHP
- build internal microservice communication between PHP apps
- serialize RPC payloads with msgpack or
- expose PHP services callable from C, Java, or Lua clients

## When to choose
- you need low-latency RPC between PHP applications with minimal setup
- you want concurrent parallel RPC calls from PHP
- you prefer a native extension over Composer-based userland libraries
- you need cross-language RPC with PHP, C, Java, or Lua

## When to avoid
- you need public-facing APIs for arbitrary third-party clients
- you require built-in service discovery, load balancing, or streaming
- you need schema-driven code generation like gRPC with Protobuf

## Facets
- artifact type: library
- maturity: stable
- function: rpc, serialization, concurrency
- domain: backend, apis, microservices, web-development
- platform: php, c, windows, cross-platform
- tags: pecl-extension, msgpack, concurrent-rpc, microservices, http-transport, tcp-transport, linux, macos

## Member repositories
- laruence/yar (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:43.408284+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:51.917763+00:00, confidence not recorded.
  - readme: https://github.com/laruence/yar (fetched 2026-08-28T04:04:43.408284+00:00, sha d2fcd1f1ba46)
- Data as of 2026-08-30T08:39:29.467469+00:00.
