Skip to content

Installation

  • PHP 8.2+
  • Symfony 6.4, 7.x or 8.x
  • symfony/console for the llms-txt:dump command, symfony/twig-bundle for the Twig functions, symfony/web-link for the Link header of discovery.link_header
Terminal window
composer require silarhi/llms-txt-bundle

Register the bundle if Flex did not:

config/bundles.php
return [
// ...
Silarhi\LlmsTxtBundle\LlmsTxtBundle::class => ['all' => true],
];

Import the route serving /llms.txt:

config/routes/llms_txt.yaml
llms_txt:
resource: '@LlmsTxtBundle/config/routes.php'