rllngr/kirby-llmsizer
Composer 安装命令:
composer require rllngr/kirby-llmsizer
包简介
Kirby plugin to generate /llms.txt and /llms-sitemap.xml for AI search engines. Works in both classic and headless mode.
README 文档
README
A Kirby CMS plugin that generates /llms.txt and /llms-sitemap.xml for AI search engines (Perplexity, ChatGPT, Claude…). Part of the rllngr plugin set.
Features
- Generates
/llms.txtand/llms-full.txtin standard Markdown format - Generates
/llms-sitemap.xmlin XML sitemap format - Classic mode (direct Kirby routes) and headless mode (JSON API)
- Configurable sections with Kirby query strings or PHP callables
- Template and page exclusions with include-override
- Optional trailing slash on URLs
- Built-in caching with auto-invalidation on content changes
- Panel blueprint section (
sections/llms) with description and AI instructions fields
Requirements
- Kirby 4 or 5
- PHP 8.1+
Installation
Via Composer (recommended — installs automatically into site/plugins/):
composer require rllngr/kirby-llmsizer
Manually — download or clone into site/plugins/kirby-llmsizer.
Endpoints
| URL | Format | Description |
|---|---|---|
/llms.txt |
Markdown | Standard LLM content file |
/llms-full.txt |
Markdown | Full version with extended page content |
/llms-sitemap.xml |
XML | Sitemap for LLM indexers |
/__llms__ |
JSON | Headless mode API |
/__llms-full__ |
JSON | Headless mode API (full) |
Configuration
In config.php:
return [ 'rllngr.kirby-llmsizer' => [ // 'classic' or 'headless' 'mode' => 'classic', // Caching 'cache' => true, 'cacheDuration' => 60, // minutes // Trailing slash on page URLs 'trailingSlash' => false, // Enable /llms-sitemap.xml (classic mode only) 'sitemap' => true, // Override base URL (headless mode) 'siteUrl' => null, // Exclusion rules (applied across all sections) 'exclude' => [ 'templates' => ['error'], 'pages' => ['private-page'], ], // Force-include pages despite exclusion rules 'include' => [ 'pages' => [], ], // Panel field names 'fields' => [ 'description' => 'llmsdescription', 'instructions' => 'llmsinstructions', ], // Content sections 'sections' => [ [ 'heading' => 'Projects', 'pages' => 'site.find("projects").children.listed', 'itemDescription' => 'excerpt', 'itemContent' => 'text', // used in llms-full.txt ], [ 'heading' => 'About', 'pages' => 'site.find("about")', 'single' => true, 'itemDescription' => 'text', ], ], ], ];
Section options
| Key | Type | Description |
|---|---|---|
heading |
string | Section title (H2 in llms.txt) |
pages |
string|callable | Kirby query string or function($kirby) returning a Page or Pages |
single |
bool | Treat result as a single page (default: false) |
limit |
int | Max number of items |
itemTitle |
string|callable | Field name or callable for item title |
itemUrl |
callable | Custom URL resolver |
itemDescription |
string|callable | Field for short description |
itemContent |
string|callable | Field for full content (llms-full.txt only) |
Panel Integration
Add the section to any blueprint:
sections: geo: extends: sections/llms
This adds the llmsdescription and llmsinstructions fields to the panel page.
License
MIT — Nicolas Rollinger
rllngr/kirby-llmsizer 适用场景与选型建议
rllngr/kirby-llmsizer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 24 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「geo」 「Sitemap」 「seo」 「kirby」 「ai」 「kirby-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 rllngr/kirby-llmsizer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rllngr/kirby-llmsizer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 rllngr/kirby-llmsizer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony sitemap generator
PHP Simple Sitemap Generator
Show geo marker on a mapbox map
Show geo shape on a mapbox map with drawing capabilities
Interfaces for web resource models and services to retrieve and create them
Help to manage meta data on Laravel Eloquent model
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 40
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-29