{"repo":"raphaelstolt/llms-txt-php","free":true,"listed":false,"github":"https://github.com/raphaelstolt/llms-txt-php","clone":"git clone https://github.com/raphaelstolt/llms-txt-php.git","description":"A PHP library for writing, reading, and validating llms.txt Markdown files.","language":"PHP","stars":29,"topics":["llms","llms-txt","llmstxt","documentation","library","markdown","ai"],"license":"MIT","category":"ai-agents","readme_excerpt":"llms.txt PHP This library supports you in creating, reading, and validating llms.txt Markdown files via PHP. A good example llms.txt file is the one from the uv project. What's llms.txt? Think of it like robots.txt for LLMs. The evolving spec is available over here. For the structure of a llms.txt file you can also have a look at this repository's llms.txt file. Installation and usage Creating a llms.txt file Expanding a llms.txt file into a LLM context file Linked documents can be expanded into a XML context file, matching the create ctx / llms txt2ctx behaviour of the Python reference library. The Optional section is skipped by default. Pass a $fetcher callable (string $url): string to resolve URLs without hitting the network (for tests or a custom HTTP client). The default fetcher reads local files and otherwise uses PHP streams. Validating and reading a llms.txt file and its parts In case you want to get the exact validation errors, you need to call validate with the detailed flag sat to true and than use the errors() method like shown below. [!TIP] To interact with llms.txt files from the console, the complement package llms-txt-php-cli might come in handy. The complementary package also includes four AI skills that can be used to interact with llms.txt files. Inline LLM instructions in HTML Vercel proposed a non-formal standard for inlining LLM instructions in HTML, based on the llms.txt standard. Value of $llmsTxtContent : For more usage examples, have a look at the te","default_branch":null,"files":null,"tree":[],"storefront":"/r/raphaelstolt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/raphaelstolt/llms-txt-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}