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 8mo 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 2d 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

30

—

LowBetter than 62% of packages

Maintenance52

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

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

460d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2282042?v=4)[Pan](/maintainers/spiderPan)[@spiderPan](https://github.com/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

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[sproutcms/cms

Enterprise content management and framework

242.5k4](/packages/sproutcms-cms)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)

PHPackages © 2026

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