# imiphp/imi

imi 是一款支持长连接微服务分布式的 PHP 开发框架，它可以运行在 PHP-FPM、Swoole、Workerman、RoadRunner 等多种容器环境下。它支持 HttpApi、WebSocket、TCP、UDP、MQTT 服务的开发。特别适合互联网微服务、即时通讯聊天im、物联网等场景！QQ群：17916227

Repository: https://github.com/imiphp/imi
Canonical: https://ross.abutalabs.com/products/imi
Homepage: https://www.imiphp.com
Language: PHP
License: NOASSERTION
License Family: other
Topics: php, swoole, swoole-framework, coroutine, php-framework, mvc, imi, golang, redis, amqp, jwt, mysql, websocket, rabbitmq, workerman, pgsql, kafka, roadrunner, grpc, mqtt
Last push: 2026-07-31T02:30:43+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 95, release rhythm 63, longevity 100
- inputs: {"age_days": 2996, "days_push": 34, "days_rel": 34, "gap_med": 259, "n_releases_24m": 2}
- 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 1186, forks 169 (observed 2026-08-28T04:03:55.101538+00:00)

## What it is
imi is a PHP framework supporting long-connection microservices and distributed development, runnable under PHP-FPM, Swoole, Workerman, and RoadRunner. It provides an ORM, connection pools, WebSocket/TCP/UDP/MQTT/gRPC servers, and microservice components like service discovery, config centers, and monitoring. Note: the project stopped maintenance on 2025-12-31 and is not recommended for new projects.

## Use cases
- build php microservices with long connections
- develop websocket chat server in php
- iot backend with mqtt in php
- swoole php framework with orm and connection pool
- grpc services in php
- real-time tcp/udp server framework for php

## When to choose
- maintaining an existing imi-based project
- you need a coroutine PHP framework running on Swoole or Workerman
- building long-connection services like IM or IoT gateways in PHP

## When to avoid
- starting a new project (officially discontinued as of end of 2025)
- you need long-term community support or security updates
- your stack is not PHP

## Facets
- artifact type: framework
- maturity: maintenance
- function: web-framework, websocket, rpc, orm, database, caching, message-queue, logging, rate-limiting, middleware, routing, scheduling
- domain: web-development, backend, microservices, iot
- platform: php, cli
- tags: swoole, workerman, roadrunner, coroutine, long-connection, mqtt, grpc, php-fpm, discontinued, messaging, real-time, linux, docker

## Member repositories
- imiphp/imi (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:55.101538+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-30T06:23:54.045474+00:00, confidence not recorded.
  - readme: https://github.com/imiphp/imi (fetched 2026-08-28T04:03:55.101538+00:00, sha 9ba948b34429)
- Data as of 2026-08-30T08:39:29.467469+00:00.
