Download the PHP package dima-support/silverstripe-llms-txt without Composer
On this page you can find all versions of the php package dima-support/silverstripe-llms-txt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dima-support/silverstripe-llms-txt
More information about dima-support/silverstripe-llms-txt
Files in dima-support/silverstripe-llms-txt
Package silverstripe-llms-txt
Short Description Generate llms.txt with important page URLs for LLMs.
License MIT
Informations about the package silverstripe-llms-txt
Silverstripe LLMs.txt Generator
Generate an llms.txt file in your project’s public webroot that lists pages from the wilr sitemap. This file can be consumed by external systems (e.g. LLM indexers) to discover public-facing content on your site.
What it does
- Takes the urls from the wilr sitemaps extension and places them in a generated llms.txt file inside /public folder
- Writes one absolute URL per line to
public/llms.txt(or your configured web root). - Provides a build task you can run via
sakeor schedule viacron.
Requirements
- Silverstripe 6.0+
- PHP version compatible with your Silverstripe version
- A project using the public webroot structure (default on SS6+). If your webroot differs, configure the path (see Configuration below).
Installation
Install via Composer:
After installation, rebuild your project:
If you deploy with an immutable filesystem (e.g., on Platform-as-a-Service), ensure your instance can write to the public webroot or use a writable alternative path (see Configuration).
Usage
Run the provided build task to generate/update the file:
This will:
- Query all
SiteTreerecords that are Published and searchable - Build a list of canonical absolute URLs
- Write them to
<public>/llms.txt
You can re-run the task anytime—it's idempotent.
Scheduling (cron)
Generate llms.txt on a schedule (e.g., every hour):
Adjust frequency to suit your publishing cadence.
Configuration
By default, the task writes to the detected public webroot (typically public/llms.txt). You can override the output path and other options in your YAML config:
If your project uses a non-standard webroot, be sure
output_pathpoints to the actual public document root served by your web server.
Output
- Location:
<public>/llms.txt - Format: One URL per line (LF line endings)
- Example:
All versions of silverstripe-llms-txt with dependencies
silverstripe/framework Version ^6.0
silverstripe/cms Version ^6.0
wilr/silverstripe-googlesitemaps Version ^3.0
guzzlehttp/guzzle Version ^7.0