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.
100% PHP 8.5 · Zero Node · Headless & AI-Native
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
Architecture
Every capability lives in a focused, strictly typed PHP 8.5 package connected through explicit contracts, a centralized mutation pipeline, and deterministic configuration.
10 core packages (core, database, config, routing, entity, user, api, mcp, cli, admin) plus proposal, assembled by phramecms/cms with strict PHPStan max compliance.
Every mutation flows through OperationBus with JSON Schema validation, least-privilege RBAC enforcement, dry-run previews, and immutable audit trails.
Entity bundles and fields automatically compile into JSON:API v1.1 endpoints and a live OpenAPI 3.1 specification with zero manual controller boilerplate.
Built-in Model Context Protocol transport over stdio and HTTP with scoped Agent Tokens, explicit write gates, and full revision attribution.
Stage multi-entity and schema edits in isolated proposals, inspect structured diffs, and require human review before atomic execution.
Typed PSR-18 client, Symfony bundle wiring, fluent ContentQuery pagination, and an in-memory FakePhrameClient for zero-network tests.
AI-Native Documentation & Content
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.
Structured plain-text index of guides, cookbook recipes, and package references ready for LLM context windows.
Append .md to any documentation URL to retrieve clean Markdown with YAML frontmatter and zero HTML chrome.
Query live PhrameCMS guides, recipes, and reference entries directly from MCP-capable IDEs and autonomous agents.
Developer Experience
Connect any PHP 8.5 frontend to PhrameCMS over JSON:API using the official SDK, with automatic cursor pagination, typed resources, and Symfony caching.
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;
}
Type to search guides, cookbook recipes, and API references.