# API Platform

🕸️ Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.

Repository: https://github.com/api-platform/api-platform
Canonical: https://ross.abutalabs.com/products/api-platform
Homepage: https://api-platform.com
Language: PHP
License: MIT
License Family: permissive
Topics: api, framework, rest, graphql, json-ld, hydra-api, hypermedia-api, hypermedia-client, symfony, symfony-bundle, react, php, graphql-server, vulcain, mercure, openapi, jamstack, nextjs, api-platform, frankenphp
Last push: 2026-08-24T06:31:59+00:00
Link (homepage): https://api-platform.com
Link (site_page): https://api-platform.com/docs
Link (site_page): https://api-platform.com/docs/create-client/nuxt
Link (site_page): https://api-platform.com/docs/create-client/react-native
Link (site_page): https://api-platform.com/docs/create-client/quasar

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 88, longevity 100
- inputs: {"age_days": 4198, "days_push": 9, "days_rel": 80, "gap_med": 8.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9179, forks 972 (observed 2026-08-28T04:10:28.753674+00:00)

## What it is
API Platform is a full-stack PHP framework built on Symfony (and Laravel) for creating API-first projects with hypermedia REST or GraphQL APIs out of the box. It includes automatic OpenAPI documentation, a React-based admin interface, real-time updates via the Mercure protocol, and client generators that scaffold Next.js, Nuxt, React Native, and other frontend apps from API docs.

## Use cases
- build a REST API in PHP with pagination, filtering, and validation
- expose a GraphQL API from Doctrine entities
- generate OpenAPI documentation automatically
- scaffold a Next.js or Nuxt frontend from an API spec
- create an admin panel without writing code
- push real-time resource updates to connected clients
- add OAuth authentication to an API
- build a Jamstack app backed by a hypermedia API

## When to choose
- you want an API-first full-stack framework in the PHP/Symfony ecosystem
- you need REST and GraphQL with content negotiation (JSON-LD, Hydra, JSON:API, HAL) out of the box
- you want auto-generated docs, admin UI, and client scaffolding from one codebase
- you need real-time updates via Server-Sent Events with minimal setup

## When to avoid
- your stack is not PHP-based
- you need a lightweight micro-framework rather than an opinionated full-stack platform
- you want full manual control over API routing and serialization layers
- your project is a simple static site with no API needs

## Facets
- artifact type: framework
- maturity: stable
- function: api-framework, web-framework, graphql, http-server, api-documentation, middleware, auth, websocket, static-site-generator, cli
- domain: web-development, backend, apis, frontend, developer-tools, self-hosted
- platform: php, cross-platform
- tags: rest, json-ld, hydra, openapi, symfony, laravel, mercure, jamstack, nextjs, react-admin, client-generator, scaffolding, content-negotiation, hypermedia, web-server, docker, kubernetes, nodejs

## Member repositories
- api-platform/api-platform (main) score 95
- api-platform/core (backend) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:28.753674+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:23:21.360700+00:00, confidence not recorded.
  - readme: https://github.com/api-platform/api-platform (fetched 2026-08-28T04:10:28.753674+00:00, sha d74835c9e384)
  - homepage: https://api-platform.com (fetched 2026-08-29T08:23:46.833459+00:00, sha e278b08c721d)
  - site_page: https://api-platform.com/docs (fetched 2026-08-29T08:23:46.835944+00:00, sha 16a95a7e608f)
  - site_page: https://api-platform.com/docs/create-client/nuxt (fetched 2026-08-29T08:23:46.839139+00:00, sha 73ffccec7fd0)
  - site_page: https://api-platform.com/docs/create-client/react-native (fetched 2026-08-29T08:23:46.841043+00:00, sha c854011cada7)
  - site_page: https://api-platform.com/docs/create-client/quasar (fetched 2026-08-29T08:23:46.842800+00:00, sha dc5a1687b5e9)
  - site_page: https://api-platform.com/docs/create-client (fetched 2026-08-29T08:23:46.844817+00:00, sha a96a5f45f079)
  - site_page: https://api-platform.com/docs/admin (fetched 2026-08-29T08:23:46.846767+00:00, sha ca1d9fefcc9e)
  - site_page: https://api-platform.com/docs/core/mercure (fetched 2026-08-29T08:23:46.848532+00:00, sha edd27b944710)
  - site_page: https://api-platform.com/docs/core/security (fetched 2026-08-29T08:23:46.850131+00:00, sha 2e0aebf466a0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
