PHPackages                             stolt/llms-txt-php-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. stolt/llms-txt-php-cli

ActiveProject[CLI &amp; Console](/categories/cli)

stolt/llms-txt-php-cli
======================

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

v1.1.0(3mo ago)231[1 PRs](https://github.com/raphaelstolt/llms-txt-php-cli/pulls)MITPHPPHP &gt;=8.1CI passing

Since Jul 29Pushed 3mo agoCompare

[ Source](https://github.com/raphaelstolt/llms-txt-php-cli)[ Packagist](https://packagist.org/packages/stolt/llms-txt-php-cli)[ RSS](/packages/stolt-llms-txt-php-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (3)Used By (0)

llms.txt PHP CLI
================

[](#llmstxt-php-cli)

[![Test Status](https://github.com/raphaelstolt/llms-txt-php-cli/workflows/test/badge.svg)](https://github.com/raphaelstolt/llms-txt-php-cli/workflows/test/badge.svg)[![Version](https://camo.githubusercontent.com/b5298f5b57c063b39be12c7b49e2703b4ff98fa8b0ecc35fc83d3e017deb6363/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73746f6c742f6c6c6d732d7478742d7068702d636c692e7376673f7374796c653d666c6174)](https://packagist.org/packages/stolt/llms-txt-php-cli)[![Downloads](https://camo.githubusercontent.com/6a45dd85144d45f93b80a4a383ca7dab30c5c7d288851e0527fac04d8c3d32ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73746f6c742f6c6c6d732d7478742d7068702d636c69)](https://camo.githubusercontent.com/6a45dd85144d45f93b80a4a383ca7dab30c5c7d288851e0527fac04d8c3d32ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73746f6c742f6c6c6d732d7478742d7068702d636c69)[![PHP Version](https://camo.githubusercontent.com/770d43133153ead0a9b8526e3352ca9933aa60cadcac54fd28aca42c3f71a613/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312b2d6666363962342e737667)](https://camo.githubusercontent.com/770d43133153ead0a9b8526e3352ca9933aa60cadcac54fd28aca42c3f71a613/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312b2d6666363962342e737667)[![PDS Skeleton](https://camo.githubusercontent.com/3c7140ee36205075ed977142f25c29eb1fb7809e9b86a865461fc21776ad1665/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7064732d736b656c65746f6e2d626c75652e7376673f7374796c653d666c6174)](https://github.com/php-pds/skeleton)[![llms.txt](https://camo.githubusercontent.com/78693a04424cf0fbf7cb08afbbcdbef4fbce3d6e1b9cd915d1c2d531b7a0789a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6c6d732e7478742d617661696c61626c652d626c75652e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/78693a04424cf0fbf7cb08afbbcdbef4fbce3d6e1b9cd915d1c2d531b7a0789a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6c6d732e7478742d617661696c61626c652d626c75652e7376673f7374796c653d666c6174)

 [![Llms txt logo](llms-txt-logo.png)](llms-txt-logo.png)

This CLI supports you in creating and validating [llms.txt](https://llmstxt.org/) Markdown files via the console.

Installation and usage
----------------------

[](#installation-and-usage)

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

### Available commands

[](#available-commands)

The following list command call shows the currently available commands.

```
bin/llms-txt-cli list

llms-txt-cli 1.0.0

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
  validate     Validate the given llms txt.file
```

### Validating a llms.txt file

[](#validating-a-llmstxt-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

[](#getting-metadata-of-a-llmstxt-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

[](#initialising-a-llmstxt-file)

```
bin/llms-txt-cli init []

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

[](#checking-the-links-of-a-llmstxt-file)

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

All links are reachable.
```

### Included AI skills

[](#included-ai-skills)

This project [includes](./resources/boost/skills) 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.md`).
- initialising: create an initial `llms.txt` file (defaults to `llms.txt` in the repo root) and verify it with validation (`llms-txt-init.md`).
- info: summarise metadata (sections, links, last modification, file details) and suggest next steps (`llms-txt-info.md`).
- checking links: run link checking for URLs in `llms.txt` and help fix broken or redirected links (`llms-txt-check-links.md`).

### Running tests

[](#running-tests)

```
composer test
```

### License

[](#license)

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

### Changelog

[](#changelog)

Please see [CHANGELOG.md](CHANGELOG.md) for more details.

### Contributing

[](#contributing)

Please see [CONTRIBUTING.md](.github/CONTRIBUTING.md) for more details.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance80

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~185 days

Total

2

Last Release

108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/132faf5713fa951f4263fad02858a62e55c5d832ad775b33e49ba0cda2f2a028?d=identicon)[Raphael Stolt](/maintainers/Raphael%20Stolt)

---

Top Contributors

[![raphaelstolt](https://avatars.githubusercontent.com/u/48225?v=4)](https://github.com/raphaelstolt "raphaelstolt (10 commits)")

---

Tags

ai-skillsclidocumentationllms-txtllmstxtphpclidevportllmsllms-txt

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/stolt-llms-txt-php-cli/health.svg)

```
[![Health](https://phpackages.com/badges/stolt-llms-txt-php-cli/health.svg)](https://phpackages.com/packages/stolt-llms-txt-php-cli)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[projektgopher/whisky

A simple CLI tool for managing a project's git hooks across multiple members.

241281.3k20](/packages/projektgopher-whisky)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)[automattic/jetpack-changelogger

Jetpack Changelogger tool. Allows for managing changelogs by dropping change files into a changelog directory with each PR.

106.7M146](/packages/automattic-jetpack-changelogger)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
