PHPackages                             spiderpan/doc-gpt - 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. spiderpan/doc-gpt

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

spiderpan/doc-gpt
=================

PHP library that for document GPT

v0.5.1(1y ago)1205[6 PRs](https://github.com/spiderPan/docGPT/pulls)MITPHPCI passing

Since Feb 8Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/spiderPan/docGPT)[ Packagist](https://packagist.org/packages/spiderpan/doc-gpt)[ RSS](/packages/spiderpan-doc-gpt/feed)WikiDiscussions main Synced 1mo ago

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

DocGPT PHP Library
==================

[](#docgpt-php-library)

The DocGPT Project is a PHP-based application designed to index and retrieve information from documents using vector databases and OpenAI APIs. This project allows users to upload documents, convert their content into vector embeddings, and store these embeddings in a vector database. Users can then ask questions, and the system will provide relevant answers by retrieving and interpreting the indexed content using advanced language models.

Key Features
------------

[](#key-features)

- Document Indexing: Extracts text from various document formats (PDF, DOCX, TXT) and converts it into vector embeddings.
- Vector Storage: Stores the vector embeddings in a vector database for efficient retrieval.
- Question Answering: Uses OpenAI APIs to find the most relevant documents and generate accurate answers based on the indexed content.

Technology Stack
----------------

[](#technology-stack)

- PHP: Backend scripting language for handling file uploads, API interactions, and database operations.
- OpenAI API: Generates embeddings and answers questions using advanced language models.
- pgvector: A PostgreSQL extension that enables efficient storage and retrieval of vector embeddings.

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

[](#installation)

To install the `DocGPT` library, you need to have Composer installed on your system. If you don't have Composer installed, you can download it from [here](https://getcomposer.org/).

Once you have Composer installed, you can install the `DocGPT` library by running the following command in your terminal:

```
composer require spiderpan/doc-gpt
```

Usage
-----

[](#usage)

See [example.php](./example.php) for a working example.

Development
-----------

[](#development)

1. Clone the repo
2. Run `./dev start` to start the docker containers

### Common CLI commands

[](#common-cli-commands)

- `./dev reset` - Rebuild the containers
- `./dev stop` - Stop the app
- `./dev test` - Unit tests are run with PHPUnit
- `./dev test path/to/Test.php` - Run a specific test file
- `./dev shell` - Open a shell in the container
- `./dev lint` - Run PHP CS Fixer

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance57

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.3% 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 ~178 days

Total

3

Last Release

413d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6449529643c7641efc262bb7c96b2290538ce224ffba04ece9b3a7a2cf651c0a?d=identicon)[spiderPan](/maintainers/spiderPan)

---

Top Contributors

[![spiderPan](https://avatars.githubusercontent.com/u/2282042?v=4)](https://github.com/spiderPan "spiderPan (84 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/spiderpan-doc-gpt/health.svg)

```
[![Health](https://phpackages.com/badges/spiderpan-doc-gpt/health.svg)](https://phpackages.com/packages/spiderpan-doc-gpt)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[maestroerror/laragent

Power of AI Agents in your Laravel project

630106.4k](/packages/maestroerror-laragent)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)

PHPackages © 2026

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