Download the PHP package spatie/laravel-markdown-response without Composer
On this page you can find all versions of the php package spatie/laravel-markdown-response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-markdown-response
Serve markdown versions of your HTML pages to AI agents and bots
[](https://packagist.org/packages/spatie/laravel-markdown-response) [](https://github.com/spatie/laravel-markdown-response/actions?query=workflow%3Arun-tests+branch%3Amain) [](https://github.com/spatie/laravel-markdown-response/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain) [](https://packagist.org/packages/spatie/laravel-markdown-response)AI agents increasingly consume web content. This package lets your Laravel app serve markdown versions of HTML pages. Markdown requests are detected via Accept: text/markdown header, known AI user agent patterns, or .md URL suffix. The conversion is driver-based (local PHP or Cloudflare Workers AI), results are cached, and HTML can be preprocessed before conversion.
Here's a quick example:
Now when an AI agent visits /about or a user visits /about.md, they receive a clean markdown version of the page.
You can also convert HTML to markdown directly:
And test your conversions:
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Documentation
All documentation is available on our documentation site.
Testing
You can run the tests with:
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
- Freek Van der Herten
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-markdown-response with dependencies
illuminate/contracts Version ^12.0 || ^13.0
league/html-to-markdown Version ^5.1
spatie/laravel-package-tools Version ^1.16
spatie/php-attribute-reader Version ^1.0
