# swoft-cloud/swoft

🚀 PHP Microservice Full Coroutine Framework

Repository: https://github.com/swoft-cloud/swoft
Canonical: https://ross.abutalabs.com/products/swoft
Homepage: https://swoft.org
Language: PHP
License: Apache-2.0
License Family: permissive
Topics: swoole, coroutine, microservice, aop, annotation-framework, rpc, annotations, tcp-server, websocket-server, http-server, spring-cloud, springboot, framework, mvc, api
Last push: 2023-02-28T12:57:06+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": 3419, "days_push": 1282, "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 5536, forks 764 (observed 2026-08-28T04:09:22.055897+00:00)

## What it is
Swoft is a PHP microservice coroutine framework built on the Swoole extension, offering a resident-memory coroutine web server with HTTP, WebSocket, RPC, and TCP support. It provides Spring Cloud-style features including AOP, dependency injection, service registration/discovery, circuit breakers, and connection pools.

## Use cases
- build high-performance PHP microservices without PHP-FPM
- run a coroutine-based HTTP or WebSocket server in PHP
- implement RPC services with service discovery and circuit breaking
- use AOP and dependency injection in a PHP framework
- manage MySQL/Redis connection pools with auto-reconnect
- schedule second-level crontab tasks in a long-running PHP process

## When to choose
- you need Spring Cloud-like microservice governance in PHP
- you want coroutine concurrency and resident-memory serving on Swoole
- you need built-in HTTP/WebSocket/RPC/TCP servers with connection pooling

## When to avoid
- you need a framework with active recent development and large community
- your host cannot install the Swoole PHP extension
- you prefer traditional PHP-FPM request lifecycle or a lightweight framework

## Facets
- artifact type: framework
- maturity: maintenance
- function: web-framework, rpc, websocket, http-server, middleware, routing, caching, message-queue
- domain: web-development, backend, microservices, apis
- platform: php, cli
- tags: swoole, coroutine, aop, microservices, service-governance, connection-pool, spring-cloud-style, resident-memory, dependency-injection, linux, docker

## Member repositories
- swoft-cloud/swoft (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:22.055897+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-29T17:55:43.786608+00:00, confidence not recorded.
  - readme: https://github.com/swoft-cloud/swoft (fetched 2026-08-28T04:09:22.055897+00:00, sha a9c31ba23116)
- Data as of 2026-08-30T08:39:29.467469+00:00.
