Open-source Craft CMS plugin. Lets editors build CP documentation ("User Manual" / "Help") from Craft's own sections (singles, channels, structures).
- Packagist:
hillholliday/craft-user-manual(keep this vendor name β do not rename). - Repo:
RobErskine/Craft-User-Manual, default branchmain. - PHP namespace:
roberskine\usermanual\βsrc/. - Supports: Craft
^4.0 | ^5.0, PHP^8.0.2. - No database layer β no records/migrations. Settings model + Twig extension + variable.
src/UserManual.php branches Craft 4 vs 5 via getMajorVersion():
Craft 4 uses Craft::$app->sections, Craft 5+ uses Craft::$app->entries.
Craft 6 (Laravel rewrite, GA expected Q4 2026) will likely change these services β
track readiness before widening the constraint to ^6.0.
Tag-driven; Packagist auto-syncs. See docs/RELEASING.md. Never re-add a
version field to composer.json β the git tag is the source of truth.
DDEV + a sibling Craft project, plugin symlinked via a Composer path repo.
See docs/LOCAL-DEV.md.
happycog/craft-skill is a PHAR CLI agent (not a markdown skill) that bootstraps
against a live Craft install and returns JSON. Once installed globally, point it at
the local test install:
agent-craft --path=../craft-user-manual-test sections/listInstall: download agent-craft.phar from
https://github.com/happycog/craft-skill/releases/latest β chmod +x β
mv to /usr/local/bin/agent-craft.
composer phpstanβ static analysis (phpstan.neon, craftcms/phpstan).composer rectorβ Craft upgrade-rule preview (rector.php, dry-run).- CI runs both plus
composer validate --strictandcomposer auditacross a PHP Γ Craft matrix (.github/workflows/ci.yml).