# mix-php/mix

☄️  PHP CLI mode development framework, supports Swoole, WorkerMan, FPM, CLI-Server / PHP 命令行模式开发框架，支持 Swoole、Swow、WorkerMan、FPM、CLI-Server

Repository: https://github.com/mix-php/mix
Canonical: https://ross.abutalabs.com/products/mix
Language: PHP
License: Apache-2.0
License Family: permissive
Topics: swoole, coroutine, framework, http, websokcet, mix, grpc, mixphp, workerman, cli, mix-php
Last push: 2026-03-18T21:49:24+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 72, release rhythm 8, longevity 100
- inputs: {"age_days": 3357, "days_push": 168, "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 1929, forks 212 (observed 2026-08-28T04:05:56.011347+00:00)

## What it is
MixPHP is a PHP CLI-mode development framework whose Vega-driven HTTP core supports Swoole, Swow, WorkerMan, FPM, and CLI-Server runtimes with seamless switching. It is built from decoupled independent modules (database, redis, grpc, websocket, cli, validator, event) that can be used standalone or composed like building blocks.

## Use cases
- build high-performance PHP APIs with Swoole coroutines
- write a gRPC server and client in PHP
- create a WebSocket service in PHP
- build CLI command-line tools in PHP
- run the same PHP app on FPM, Swoole, or WorkerMan
- use coroutine connection pools for database and Redis in PHP

## When to choose
- you need a PHP framework that runs across Swoole, Swow, WorkerMan, FPM, and CLI-Server
- you want coroutine-based performance with access to composer ecosystem packages
- you want standalone modules like mix/database or mix/grpc to use in other projects

## When to avoid
- you need a full-featured traditional web framework with extensive ecosystem like Laravel or Symfony
- your team has no experience with coroutine or long-running PHP runtimes
- you only target shared hosting without Swoole/WorkerMan support

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, http-server, websocket, rpc, cli, database, orm, middleware, routing
- domain: web-development, backend, developer-tools
- platform: php, cli
- tags: swoole, workerman, swow, coroutine, grpc, fpm, cli-server, connection-pool, redis, command-line, linux, docker

## Member repositories
- mix-php/mix (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:56.011347+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-30T03:09:02.968436+00:00, confidence not recorded.
  - readme: https://github.com/mix-php/mix (fetched 2026-08-28T04:05:56.011347+00:00, sha 033e5276e401)
- Data as of 2026-08-30T08:39:29.467469+00:00.
