100% PHP 8.5 · Zero Node · Headless & AI-Native

PhrameCMS — The Modern Headless PHP 8.5 CMS

Schema-first content modeling, canonical Git config sync, auto-generated JSON:API + OpenAPI 3.1, and native Model Context Protocol (MCP) tooling in a clean 10-package PHP 8.5 architecture.

composer create-project phramecms/skeleton
PHP 8.5 Strict Types Zero Node / npm JSON:API + OpenAPI 3.1 Native MCP Server

Architecture

Engineered for Clarity, Strict Types, and Scale

Every capability lives in a focused, strictly typed PHP 8.5 package connected through explicit contracts, a centralized mutation pipeline, and deterministic configuration.

Modular

10 Modular PHP 8.5 Packages

10 core packages (core, database, config, routing, entity, user, api, mcp, cli, admin) plus proposal, assembled by phramecms/cms with strict PHPStan max compliance.

Safety

Centralized Operation Pipeline

Every mutation flows through OperationBus with JSON Schema validation, least-privilege RBAC enforcement, dry-run previews, and immutable audit trails.

API-First

JSON:API + OpenAPI 3.1

Entity bundles and fields automatically compile into JSON:API v1.1 endpoints and a live OpenAPI 3.1 specification with zero manual controller boilerplate.

AI-Ready

Native MCP Support

Built-in Model Context Protocol transport over stdio and HTTP with scoped Agent Tokens, explicit write gates, and full revision attribution.

Governance

Change Proposals

Stage multi-entity and schema edits in isolated proposals, inspect structured diffs, and require human review before atomic execution.

Client SDK

Official phramecms/php-sdk

Typed PSR-18 client, Symfony bundle wiring, fluent ContentQuery pagination, and an in-memory FakePhrameClient for zero-network tests.

AI-Native Documentation & Content

Built for Humans & AI Agents

PhrameCMS treats developers and AI coding agents as first-class citizens — exposing clean HTML pages alongside raw Markdown twins, an llms.txt index, and a public read-only MCP endpoint.

/llms.txt

Curated /llms.txt Index

Structured plain-text index of guides, cookbook recipes, and package references ready for LLM context windows.

/docs/<slug>.md

Clean .md Twins

Append .md to any documentation URL to retrieve clean Markdown with YAML frontmatter and zero HTML chrome.

POST /docs/mcp

Public Read-Only Docs MCP

Query live PhrameCMS guides, recipes, and reference entries directly from MCP-capable IDEs and autonomous agents.

Developer Experience

Type-Safe Content Delivery with phramecms/php-sdk

Connect any PHP 8.5 frontend to PhrameCMS over JSON:API using the official SDK, with automatic cursor pagination, typed resources, and Symfony caching.

src/Docs/FetchGuides.php
use PhrameCms\Sdk\ClientConfig;
use PhrameCms\Sdk\PhrameClient;
use PhrameCms\Sdk\Query\ContentQuery;

$client = PhrameClient::create(new ClientConfig(
    baseUri: 'https://cms.example.com',
    token: $_ENV['PHRAME_API_TOKEN'],
));

$query = ContentQuery::create()
    ->filter('state', 'published')
    ->sort('weight')
    ->limit(50);

foreach ($client->content()->iterateAll('doc', 'guide', $query) as $guide) {
    echo $guide->attributes['title'] . PHP_EOL;
}