定制 stolt/llms-txt-php-cli 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stolt/llms-txt-php-cli

最新稳定版本:v1.5.2

Composer 安装命令:

composer require --dev stolt/llms-txt-php-cli

包简介

A CLI for writing, reading, and validating llms.txt Markdown files.

README 文档

README

Test Status Version Boost ready Downloads PHP Version PDS Skeleton llms.txt Lean dist package

Llms txt logo

This CLI supports you in creating and validating llms.txt Markdown files via the console.

Installation and usage

composer require --dev stolt/llms-txt-php-cli

Available commands

The following list command call shows the currently available commands.

bin/llms-txt-cli list

llms-txt-cli 1.5.1

Available commands:
  check-links  Check links of a llms.txt file
  info         Get metadata info of a llms.txt file
  init         Create an initial llms txt.file
  list-skills  List included AI skills
  render       Render the given llms.txt file
  validate     Validate the given llms txt.file

Validating a llms.txt file

bin/llms-txt-cli validate tests/fixtures/uv.llms.md

The provided llms.txt file tests/fixtures/uv.llms.md is valid.

or

bin/llms-txt-cli validate https://docs.astral.sh/uv/

The delivered llms.txt file from https://docs.astral.sh/uv/ is valid.

A llms.txt file is considered valid, when a title, description, details, and at least one section with at least one link are available.

Getting metadata of a llms.txt file

bin/llms-txt-cli info tests/fixtures/uv.llms.md

{
    "sections": 7,
    "links": 45,
    "last_modification": "26.06.2025 06:38:45",
    "file": {
        "name": "tests\/fixtures\/uv.llms.md",
        "path": "\/home\/stolt\/oss\/llms-txt-php-cli\/tests\/fixtures\/uv.llms.md",
        "size": "4.07K"
    }
}

Initialising a llms.txt file

bin/llms-txt-cli init [<llms-txt-file>]

Created llms.txt file llms.txt.

cat llms.txt

# Init title

> Init description

Init details

## Init section

- [Init URL](http://init.org)

If no llms-txt-file name is provided, it defaults to llms.txt.

Checking the links of a llms.txt file

bin/llms-txt-cli check-links tests/fixtures/uv.llms.md

All links are reachable.

Included AI skills

This project includes four AI skills focused on managing a llms.txt file:

  • validating: check whether a given llms.txt file (local path or URL) is valid and guide fixes until it passes (llms-txt-validate/SKILL.md).
  • initialising: create an initial llms.txt file (defaults to llms.txt in the repo root) and verify it with validation (llms-txt-init/SKILL.md).
  • info: summarise metadata (sections, links, last modification, file details) and suggest next steps (llms-txt-info/SKILL.md).
  • checking links: run link checking for URLs in llms.txt and help fix broken or redirected links (llms-txt-check-links/SKILL.md).

Running tests

composer test

License

This CLI is licensed under the MIT license. Please see LICENSE.md for more details.

Changelog

Please see CHANGELOG.md for more details.

Contributing

Please see CONTRIBUTING.md for more details.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固