PHPackages                             dima-support/silverstripe-llms-txt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dima-support/silverstripe-llms-txt

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

dima-support/silverstripe-llms-txt
==================================

Generate llms.txt with important page URLs for LLMs.

1.4(3mo ago)2155MITPHPPHP ^8.2 || ^8.3

Since Sep 22Pushed 3mo agoCompare

[ Source](https://github.com/Dima-Support/silverstripe-llms-text)[ Packagist](https://packagist.org/packages/dima-support/silverstripe-llms-txt)[ RSS](/packages/dima-support-silverstripe-llms-txt/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

Silverstripe LLMs.txt Generator
===============================

[](#silverstripe-llmstxt-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
------------

[](#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 `sake` or schedule via `cron`.

---

Requirements
------------

[](#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
------------

[](#installation)

Install via Composer:

```
composer require dima-support/silverstripe-llms-txt
```

After installation, rebuild your project:

```
# Rebuild database, regenerate config, and clear caches
vendor/bin/sake dev/build flush=all

# (Optional but helpful) refresh autoloaders
composer dump-autoload
```

> 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
-----

[](#usage)

Run the provided build task to generate/update the file:

```
vendor/bin/sake dev/tasks/generate-llms-txt
```

This will:

- Query all `SiteTree` records that are Published and searchable
- Build a list of canonical absolute URLs
- Write them to `/llms.txt`

You can re-run the task anytime—it's idempotent.

### Scheduling (cron)

[](#scheduling-cron)

Generate `llms.txt` on a schedule (e.g., every hour):

```
# command
0 * * * * cd /path/to/project && /usr/bin/env php vendor/bin/sake dev/tasks/generate-llms-txt > /dev/null 2>&1
```

Adjust frequency to suit your publishing cadence.

---

Configuration
-------------

[](#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:

```
# app/_config/llms-txt.yml
Task\LLMsTxt\GenerateLLMsTxtTask:
  output_path: 'public/llms.txt'   # Relative to project root, or absolute path
  # base_url: 'https://example.com' # Force a base URL if not auto-detected
  # include_drafts: false           # Safety net, should remain false
  # additional_filters: []          # Add extra ORM filters if needed
```

> If your project uses a non-standard webroot, be sure `output_path` points to the actual public document root served by your web server.

---

Output
------

[](#output)

- **Location:** `/llms.txt`
- **Format:** One URL per line (LF line endings)
- **Example:**

```
https://example.com/
https://example.com/about-us/
https://example.com/blog/
https://example.com/blog/how-we-work/

```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance82

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~35 days

Total

5

Last Release

92d ago

PHP version history (2 changes)1.0PHP ^8.1

1.1PHP ^8.2 || ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a866e8a330b9413f99ce1908a433bbe42240187d1646a73fd2acbbb8091dfb4?d=identicon)[Dima Support](/maintainers/Dima%20Support)

---

Top Contributors

[![dannyDIMA](https://avatars.githubusercontent.com/u/144783166?v=4)](https://github.com/dannyDIMA "dannyDIMA (6 commits)")

### Embed Badge

![Health badge](/badges/dima-support-silverstripe-llms-txt/health.svg)

```
[![Health](https://phpackages.com/badges/dima-support-silverstripe-llms-txt/health.svg)](https://phpackages.com/packages/dima-support-silverstripe-llms-txt)
```

###  Alternatives

[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[purplespider/mypswd-tweaks

Custom SilverStripe tweaks to keep things tidy.

181.4k](/packages/purplespider-mypswd-tweaks)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
