# phalapi/phalapi

PhalApi开源接口框架，简称π框架，一个轻量级PHP开源接口框架，专注于接口服务开发。接口，从简单开始！

Repository: https://github.com/phalapi/phalapi
Canonical: https://ross.abutalabs.com/products/phalapi
Homepage: http://www.phalapi.net
Language: PHP
License: Apache-2.0
License Family: permissive
Topics: phalapi, php-framework, restful, microservice, soap-web-services, api, phpapi, api-framework
Last push: 2026-07-23T23:41:33+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 36, longevity 100
- inputs: {"age_days": 4119, "days_push": 41, "days_rel": 216, "gap_med": 234.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1599, forks 369 (observed 2026-08-28T04:05:09.440394+00:00)

## What it is
PhalApi (π framework) is a lightweight open-source PHP framework focused on API/interface service development, supporting HTTP, SOAP, and RPC protocols. It provides automatic online API documentation, parameter validation rules, database access helpers, and client SDKs for building RESTful APIs and microservices.

## Use cases
- build restful apis in php
- create microservice backends
- auto-generate online api documentation
- build soap web services
- rapid api prototyping with crud endpoints
- serve  apis for mobile apps
- validate and handle api request parameters

## When to choose
- you need a lightweight PHP framework dedicated to API development
- you want auto-generated, testable online API docs out of the box
- you need HTTP/SOAP/RPC support in one framework
- you prefer simple, fast setup via composer with minimal boilerplate

## When to avoid
- you need a full-featured web framework with templating and server-side rendering
- your team works outside the PHP ecosystem
- you need a framework with a large international community and ecosystem like Laravel or Symfony

## Facets
- artifact type: framework
- maturity: active
- function: api-framework, web-framework, http-server, routing, middleware, database, orm, documentation, rpc
- domain: web-development, backend, apis, microservices, developer-tools
- platform: php, self-hosted, cross-platform
- tags: restful, api-development, microservices, soap, auto-generated-docs, lightweight, chinese-community, web-server, linux

## Member repositories
- phalapi/phalapi (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:09.440394+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:53:14.075298+00:00, confidence not recorded.
  - readme: https://github.com/phalapi/phalapi (fetched 2026-08-28T04:05:09.440394+00:00, sha f461b4333151)
  - homepage: http://www.phalapi.net (fetched 2026-08-29T11:24:40.236504+00:00, sha 773043bea24c)
  - site_page: http://demo.phalapi.net/docs.php (fetched 2026-08-29T11:24:40.239123+00:00, sha 61688d890ae9)
  - site_page: https://www.phalapi.net/about.html (fetched 2026-08-29T11:24:40.241026+00:00, sha 243b5f0c3935)
- Data as of 2026-08-30T08:39:29.467469+00:00.
