phramecms / admin
Server-rendered Twig Admin UI module for PhrameCMS.
v0.1.0
2026-12-04 21:15 UTC
Requires
- php: ^8.5
- phramecms/config: ^0.1
- phramecms/core: ^0.1
- phramecms/entity: ^0.1
- phramecms/routing: ^0.1
- phramecms/user: ^0.1
- twig/twig: ^3.30
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95
- infection/infection: ^0.35.12
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^13.0
- spaze/phpstan-disallowed-calls: ^4.15
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-04 21:34:04 UTC
README
Server-rendered Twig Admin UI module for PhrameCMS mounted at /admin.
Provides a zero-Node, pure-PHP editorial and AI-governance control plane built strictly as a thin adapter over Core's OperationBus:
- Dashboard — Content/bundle overview, drafts awaiting review, recent AI Agent activity, and denied RBAC attempts
- Content & Workflow — Dynamic CRUD forms auto-generated from live JSON Schemas (all 9 built-in field types + multi-value cardinality), revision history (Human vs. AI Agent attribution), and 1-click workflow transitions
- Schema Builder — Create Entity Types, Bundles, Field Storages, and attach Field Instances with
dry_runpreviews - Config & Snapshots — Inspect
config.diff, previewconfig.import(dry_run), export toconfig/sync/, and roll back snapshots - Access & AI Governance — Manage Users, Roles, scoped AI Agent Tokens (with ready-to-copy MCP client snippets), and filter the immutable Audit Log
Architecture & Encapsulation
twig/twig is strictly encapsulated behind PhrameCms\Admin\Contract\TemplateRendererInterface with HTML auto-escaping enabled. Downstream modules can register custom admin navigation entries via AdminMenuProviderInterface (phrame.admin_menu) with zero Twig coupling.
Requirements
- PHP
^8.5 phramecms/core,phramecms/routing,phramecms/user,phramecms/entity,phramecms/config
License
MIT