Download the PHP package daikazu/laravel-llm-ready without Composer

On this page you can find all versions of the php package daikazu/laravel-llm-ready. 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 laravel-llm-ready

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Serve LLM-optimized markdown versions of your Laravel pages by appending .md to any URL.

Purpose

Large Language Models (LLMs) like ChatGPT and Claude work much better with clean markdown than parsing HTML. This package automatically converts your Laravel pages to markdown, making your site more accessible to AI crawlers, tools, and users who want to feed your content to LLMs.

Features

Requirements

Installation

The package will auto-discover and register itself.

Publish Configuration (Optional)

Server Configuration

Your web server needs to pass .md requests to Laravel instead of trying to serve them as static files.

Apache

The default Laravel .htaccess should work. Ensure it contains:

Nginx

Add this to your server block:

Laravel Valet/Herd

Works out of the box - no configuration needed.

Usage

Accessing Markdown Versions

There are three ways to get the markdown version of a page:

llms.txt Endpoint

The /llms.txt endpoint follows the llmstxt.org specification, providing LLMs with structured information about your site:

Example output:

Markdown Discovery

LLMs and crawlers need a way to discover that a markdown version of a page exists. This package provides three complementary mechanisms:

Automatic Link Header

Every HTML response automatically includes a Link header pointing to the markdown version:

This is enabled by default. Disable it via config or environment variable:

Blade Directive

Add a <link> tag to your templates so crawlers can discover the markdown version via HTML:

The directive is opt-in — it only outputs when you use it, and returns an empty string for excluded routes or when the package is disabled.

Helper Function

Use llmReadyUrl() in programmatic contexts like SEO middleware (e.g., romanzipp/laravel-seo):

Clear Cache

Configuration

Output Example

Requesting /about-us.md produces clean markdown:

Configuring llms.txt

The llms.txt endpoint can be fully customized to provide curated information to LLMs:

Custom Content Extractor

Create your own extractor by implementing ContentExtractorInterface:

Then update your config:

Environment Variables

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-llm-ready with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
league/html-to-markdown Version ^5.1
symfony/css-selector Version ^7.0|^8.0
symfony/dom-crawler Version ^7.0|^8.0.0
symfony/yaml Version ^7.0|^8.0.0
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 daikazu/laravel-llm-ready contains the following files

Loading the files please wait ...