# youzan/zanphp

PHP开发面向C10K+的高并发SOA服务  和RPC服务首选框架

Repository: https://github.com/youzan/zanphp
Canonical: https://ross.abutalabs.com/products/zanphp
Homepage: http://zanphp.io/
Language: PHP
License: MIT
License Family: permissive
Topics: php, zanphp, rpc, soa, asyncio, yield, high-performance
Last push: 2017-10-17T06:39:29+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3973, "days_push": 3242, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1425, forks 229 (observed 2026-08-28T04:04:41.500172+00:00)

## What it is
ZanPHP is a coroutine-based PHP network service framework for building high-concurrency (C10K+) SOA and RPC services, using yield-based coroutines with a Golang-like concurrency model. It provides async non-blocking I/O, connection pools for MySQL/Redis, middleware, and a complete RPC solution, and was used in production at Youzan.

## Use cases
- build high-concurrency RPC services in PHP
- develop SOA microservices with PHP coroutines
- async non-blocking PHP web services for C10K workloads
- connection pooling for MySQL and Redis in PHP
- learn coroutine-based async programming in PHP
- build business middleware in PHP

## When to choose
- you need coroutine-based async PHP services and can maintain the stack yourself
- your team wants a Golang-like concurrency model in PHP
- you are building SOA/RPC business services at high concurrency

## When to avoid
- you want an actively maintained framework - the last release was 2017
- you are starting a new project - modern PHP async tools like Swoole or Workerman are better supported
- you need broad community support or up-to-date PHP version compatibility

## Facets
- artifact type: framework
- maturity: abandoned
- function: web-framework, rpc, http-server, middleware, caching, concurrency
- domain: backend, web-development, microservices
- platform: php
- tags: coroutines, async-io, soa, high-concurrency, c10k, yield, connection-pool, youzan, linux, web-server

## Member repositories
- youzan/zanphp (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:41.500172+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:37:32.850696+00:00, confidence not recorded.
  - readme: https://github.com/youzan/zanphp (fetched 2026-08-28T04:04:41.500172+00:00, sha 22f8120f1e4e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
