Download the PHP package roots/acorn-llms-txt without Composer

On this page you can find all versions of the php package roots/acorn-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 acorn-llms-txt

Acorn LLMs.txt

Packagist Downloads Build Status Follow Roots Sponsor Roots

Expose your WordPress site content through /llms.txt endpoints following the llmstxt.org specification. This makes your WordPress content easily accessible to Large Language Models (LLMs) in a structured, markdown format.

Support us

Roots is an independent open source org, supported only by developers like you. Your sponsorship funds WP Packages and the entire Roots ecosystem, and keeps them independent. Support us by purchasing Radicle or sponsoring us on GitHub — sponsors get access to our private Discord.

Features

Installation

Install via Composer:

Publish the configuration file:

Endpoints

/llms.txt

A structured listing of your site content (like a table of contents):

/llms-full.txt

Complete content of all posts and pages in markdown format:

/llms-small.txt

Compressed version with excerpts only for faster processing:

/llms-sitemap.xml

XML sitemap listing all llms.txt endpoints, automatically integrated with SEO plugins.

Individual Post Endpoints (Optional)

Access individual posts via /post-slug.txt (disabled by default for performance).

Configuration

After publishing, edit config/llms-txt.php:

Post Types

Content Processing

Content Limits

Exclusions

Individual Post Endpoints

Caching

WooCommerce Integration

SEO Integration

The package automatically respects SEO plugin settings and integrates with their sitemaps:

Content Filtering:

Sitemap Integration:

Search Engine Protection:

Posts marked as noindex by SEO plugins will not appear in any llms.txt endpoints.

WP-CLI Commands

View package information

Clear cached content

Developer Hooks

Filters

Filter which post types are included:

Exclude specific posts:

Filter individual post data:

Filter the complete posts collection:

Filter the entire document before output:

Filter final content before serving:

Filter XML sitemap before serving:

Control sitemap integration:

Actions

Add custom sections before default content:

Add custom sections after default content:

Add completely custom sections:

Cache Management

The package automatically invalidates cache when:

Manual cache clearing:

Performance

This package is optimized for performance with:

Troubleshooting

Cache Issues

If content isn't updating, clear the cache:

Routes Not Working

Ensure Acorn routes are optimized:

Performance on Large Sites

For sites with many posts, adjust limits in config/llms-txt.php:

Requirements

Community

Keep track of development and community news.


All versions of acorn-llms-txt with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
league/html-to-markdown Version ^5.1
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 roots/acorn-llms-txt contains the following files

Loading the files please wait ...