johnfmorton/craft-llm-ready
Composer 安装命令:
composer require johnfmorton/craft-llm-ready
包简介
Serve Markdown versions of your Craft CMS pages to AI crawlers and LLMs via .md URLs, content negotiation, and user-agent detection.
README 文档
README
LLM Ready makes your Craft CMS site machine-readable by serving clean Markdown versions of your content to AI crawlers and LLMs. Append .md to any entry URL, and LLM Ready converts the page to Markdown with YAML front matter — no extra templates required.
For complete documentation, see the LLM Ready Documentation in this repo.
Using an AI coding assistant? Point your agent to AI-INSTALL.md for automated installation and configuration.
Highlights
- Zero configuration required — works out of the box with no template changes. Install the plugin and your content is immediately available as Markdown.
- Append
.mdto any entry URL to get a clean Markdown version using your existing URLs — no separate URL prefix needed. - Automatic AI bot detection — transparently serves Markdown to known AI crawlers (GPTBot, ClaudeBot, PerplexityBot, and others) without any action from the visitor.
- Three detection methods:
.mdURL suffix,Accept: text/markdowncontent negotiation, and AI bot user-agent detection. - Smart HTML-to-Markdown conversion extracts main content and strips navigation, footers, scripts, and other non-content elements — no template tags to add.
- Optionally assign dedicated Twig templates per section that output raw Markdown for full control.
- Real-time rendering — Markdown is generated on demand and cached, so content is always up to date without queue jobs or batch generation.
- Auto-generates a
/llms.txtsite index following the llms.txt specification. - Listing page support — append
.mdto a section's base URL to get a Markdown index of entries. - YAML front matter with entry metadata (title, date, author, canonical URL, section).
- Auto-injects
<link rel="alternate" type="text/markdown">discovery tags into HTML pages. - Project config support — per-section settings are stored in Craft's project config for version control and multi-environment sync.
- Per-section enable/disable control from the plugin settings page.
- Caches Markdown output with automatic invalidation when entries are saved.
X-Robots-Tag: noindexheader prevents search engines from indexing Markdown responses.
Requirements
This plugin requires Craft CMS 5.5.0 or later, and PHP 8.2 or later.
Installation
You can install this plugin from the Plugin Store or with Composer.
Using an AI coding assistant? See AI-INSTALL.md for a step-by-step guide your agent can follow to install, verify, and configure the plugin automatically.
From the Plugin Store
Go to the Plugin Store in your project's Control Panel and search for "LLM Ready". Then press "Install".
With Composer
Open your terminal and run the following commands:
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require johnfmorton/craft-llm-ready # tell Craft to install the plugin ./craft plugin/install llm-ready
johnfmorton/craft-llm-ready 适用场景与选型建议
johnfmorton/craft-llm-ready 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 201 次下载、GitHub Stars 达 5, 最近一次更新时间为 2026 年 03 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 johnfmorton/craft-llm-ready 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 johnfmorton/craft-llm-ready 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 201
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 39
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2026-03-21