PHPackages                             thojou/llm-documents - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. thojou/llm-documents

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

thojou/llm-documents
====================

A PHP library adapting the original python Document transformation framework to improve vector search results

711PHP

Since Oct 9Pushed 2y ago4 watchersCompare

[ Source](https://github.com/thojou/php-llm-documents)[ Packagist](https://packagist.org/packages/thojou/llm-documents)[ RSS](/packages/thojou-llm-documents/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP LLM Documents
=================

[](#php-llm-documents)

[![Static Badge](https://camo.githubusercontent.com/dd091876be639883d3ec7a5910e3a61fc9f952106be8483268cf06706590b008/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505f56657273696f6e2d253345253344382e312d626c7565)](https://camo.githubusercontent.com/dd091876be639883d3ec7a5910e3a61fc9f952106be8483268cf06706590b008/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505f56657273696f6e2d253345253344382e312d626c7565)[![CI](https://github.com/thojou/php-llm-documents/actions/workflows/ci.yml/badge.svg)](https://github.com/thojou/php-llm-documents/actions/workflows/ci.yml)[![Coverage](https://camo.githubusercontent.com/0c967d746eb7f4fe28065a3b94d23faa207cd6f4a968535b20fce0310a87cf89/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d677265656e)](https://camo.githubusercontent.com/0c967d746eb7f4fe28065a3b94d23faa207cd6f4a968535b20fce0310a87cf89/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d677265656e)[![License](https://camo.githubusercontent.com/2d3359bf5eabcfc2d5fd43ce3e7f0490575da8a848673ade9aa28801e44abff5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74686f6a6f752f7068702d6c6c6d2d646f63756d656e7473)](LICENSE)

**PHP LLM Documents** is a powerful PHP library that brings LLM (Large Language Model) functionality into the PHP ecosystem. It incorporates various features inspired by popular Python libraries such as [langchain](https://python.langchain.com/docs/get_started/introduction) and [doctran](https://github.com/psychic-api/doctran). This library offers capabilities for web search, web scraping, document transformation, text splitting, embeddings, vector storage and retrieval.

Requirements
------------

[](#requirements)

- PHP version &gt;= 8.1

Installation
------------

[](#installation)

You can effortlessly install the **PHP LLM Documents** using the popular package manager [composer](https://getcomposer.org/).

> This project is currently under development. If installing with composer, please make sure to accept a minimum stability of `dev` in your `composer.json` file.

```
composer require thojou/llm-documents:dev-master
```

Usage
-----

[](#usage)

For more practical examples, please refer to the [examples](examples) folder.

Documentation
-------------

[](#documentation)

> Coming Soon

License
-------

[](#license)

This project is licensed under the generous and permissive [MIT license](LICENSE).

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/59c150509cc8be047fb0796127683a41bc6bce1b9b0154ed0b90f2c7fcaee3d1?d=identicon)[thojou](/maintainers/thojou)

---

Top Contributors

[![thojou](https://avatars.githubusercontent.com/u/21999844?v=4)](https://github.com/thojou "thojou (11 commits)")

### Embed Badge

![Health badge](/badges/thojou-llm-documents/health.svg)

```
[![Health](https://phpackages.com/badges/thojou-llm-documents/health.svg)](https://phpackages.com/packages/thojou-llm-documents)
```

###  Alternatives

[pear/fsm

Finite State Machine

355.0k](/packages/pear-fsm)

PHPackages © 2026

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