Download the PHP package rkd/module-llms-txt without Composer

On this page you can find all versions of the php package rkd/module-llms-txt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-llms-txt

RKD LLMs.txt Generator for Magento 2

Generate llms.txt and llms-full.txt files for your Magento 2 store, making your product catalog discoverable by AI assistants like ChatGPT, Claude, and Perplexity.

What is llms.txt?

llms.txt is an emerging standard (like robots.txt for search engines) that helps Large Language Models understand your website content. This module automatically generates structured, AI-optimized files from your Magento catalog.

Features

Requirements

Installation

Via Composer (recommended)

Manual Installation

  1. Create app/code/RKD/LlmsTxt/ directory
  2. Copy module files into it
  3. Run:

Configuration

Navigate to Stores > Configuration > RKD > LLMs.txt Generator

General Settings

Field Description Default
Enable Module Enable/disable the module Yes
Auto-Regeneration Regenerate files on a cron schedule Yes
Regeneration Schedule How often to regenerate Daily
Store Description for AI Describe your store for AI assistants (1-2 sentences) Auto-generated
Generate Now Button to trigger immediate generation

Content Sections

Field Description Default
Include CMS Pages Include CMS pages in output Yes
Include Categories Include product categories Yes
Category Depth Limit Maximum category tree depth 3
Include Products Include products in output Yes
Product Limit Maximum number of products. Set to 0 for unlimited (full catalog). 0 (unlimited)
Product Sort Order How to sort products Best Sellers
Include Store Metadata Include store info section Yes
Exclude Out-of-Stock Filter out unavailable products Yes

Product Data

Field Description Default
Include Prices Show product prices Yes
Include SKU Show product SKU Yes
Include Short Description Show product descriptions Yes
Additional Product Attributes Select extra attributes for your niche

llms-full.txt Settings

Field Description Default
Generate llms-full.txt Generate the complete content file Yes
Max File Size (MB) Size limit for llms-full.txt 5 MB
Content Depth How much detail per product Detailed

Usage

CLI Command

REST API

URLs

After generation, the files are served at:

Admin Panel

How It Works

  1. SectionProviders collect data from Magento (metadata, CMS pages, categories, products)
  2. Generator orchestrates providers, builds markdown output
  3. Validator checks spec compliance
  4. FileWriter writes to var/rkd_llmstxt/ with atomic writes
  5. Router serves the files at /llms.txt with proper UTF-8 headers
  6. Observers detect entity changes and set dirty flags
  7. Cron checks dirty flags and regenerates when needed

Performance

The module uses cursor-based pagination (WHERE entity_id > :lastId — no OFFSET performance cliff) combined with PHP generators (yield) so each batch is processed and released before the next is loaded. Batch-level memory is bounded; total memory scales with catalog size because the final output is assembled before writing. Write-up of the technique: Paginating Magento catalogs without OFFSET.

Catalog Size Peak Memory Time Recommended PHP memory_limit
1,000 products ~60 MB ~0.2s 256M
10,000 products ~120 MB ~2s 512M (default cap)
100,000 products ~400 MB ~15–20s 1024M (raise product_limit in admin)

By default Product Limit is 0 (unlimited) — the full visible catalog is included. You can optionally cap it via Stores > Configuration > RKD > LLMs.txt > Product Limit (for example, to generate a smaller "top products" file). When a configured cap is hit, the generation result surfaces a clear warning telling you how many products were excluded. For very large catalogs (50K+ products), ensure PHP memory_limit is sized accordingly using the table above.

Multi-Store and Multi-Language Support

Multi-language is a first-class feature, not an afterthought. The module generates one file set per store view and makes every language discoverable by AI crawlers from any entry point.

How it works

For each active store view, the module writes:

…served at the store view's public URL:

URL an AI fetches What it gets
https://example.com/llms.txt Default store view's file (set in Magento's store configuration)
https://example.com/et/llms.txt Estonian store view
https://example.com/ru/llms.txt Russian store view
https://example.com/de/llms.txt German store view

Automatic cross-language discovery

Each file includes an "Available in Other Languages" section listing sibling store views on the same website:

An AI that fetches any one language's llms.txt will find the others automatically — no external sitemap or registry needed.

Language handling internals

Content resolution follows Magento's native EAV store-scope fallback:

Note: For AI output to be fully localized per language, merchants should translate product names, descriptions, and attribute values for each store view. If content isn't translated, the fallback (default-scope) value appears — accurate to what the storefront serves, but potentially mixing languages in the output. This is a content-translation responsibility, not a module limitation.

Supported Product Types

Type Output
Simple Name, URL, SKU, Price, Description
Configurable + Available options (Color, Size, etc.)
Bundle + Included items per bundle option
Grouped + Associated products with prices
Virtual + "Digital" label
Downloadable + "Download" label
Customizable Options + Add-on options with prices

Change Detection

The module tracks changes via Magento events:

When a change is detected, a dirty flag is set. The next cron run regenerates the files.

License

MIT License. See LICENSE.txt.

Support


All versions of module-llms-txt with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
magento/framework Version >=103.0.8
magento/module-store Version >=101.1.0
magento/module-cms Version >=104.0.0
magento/module-catalog Version >=104.0.0
magento/module-catalog-inventory Version >=100.4.0
magento/module-cron Version >=100.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rkd/module-llms-txt contains the following files

Loading the files please wait ...