PHPackages                             neuron-core/php-vector - 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. [Framework](/categories/framework)
4. /
5. neuron-core/php-vector

ActiveLibrary[Framework](/categories/framework)

neuron-core/php-vector
======================

PHPVector adapter for the Neuron AI framework.

1.1.0(1mo ago)371MITPHPPHP ^8.2CI passing

Since Jun 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/neuron-core/php-vector)[ Packagist](https://packagist.org/packages/neuron-core/php-vector)[ RSS](/packages/neuron-core-php-vector/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

Neuron AI Adapter for php-vector
================================

[](#neuron-ai-adapter-for-php-vector)

PHPVector adapter for the [Neuron AI](https://neuron-ai.dev) framework. Implements `NeuronAI\RAG\VectorStore\VectorStoreInterface` on top of `ezimuel/phpvector`.

Dependencies
------------

[](#dependencies)

- PHP ^8.2
- [ezimuel/phpvector](https://github.com/ezimuel/PHPVector) ^0.3.0
- [Neuron AI](https://github.com/neuron-core/neuron-ai) ^3.0

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

[](#installation)

```
composer require neuron-core/php-vector
```

Usage
-----

[](#usage)

Inside a Neuron RAG class:

```
class MyRAG extends RAG
{
    ...

    protected function vectorStore(): VectorStoreInterface
    {
        return new PHPVector(
            path: '/var/data/mydb',
            topK: 5,
        );
    }
}
```

Use it as a standalone component:

```
use NeuronAI\PHPVector\PHPVector;
use PHPVector\VectorDatabase;

// Persistent database: pass a path to enable on-disk storage.
$store = new PHPVector(
    path: '/var/data/mydb',
    topK: 5,
);
```

Persistence
-----------

[](#persistence)

By default, this adapter auto-saves after every mutation (`addDocument`, `addDocuments`, `deleteBy`), batched to a single `save()` per call, so persistence "just works".

Deletion
--------

[](#deletion)

`deleteBy()` removes documents by Neuron's `sourceType` / `sourceName`, which this adapter stores as PHPVector metadata:

```
$store->deleteBy('pdf');               // all documents from sourceType "pdf"
$store->deleteBy('pdf', 'manual.pdf'); // only that exact source
```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.7% 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 ~0 days

Total

2

Last Release

50d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/320345fbe48c7cff2b3a25992c8207e959ae7817fb2fb97bb176dc6e559aacf5?d=identicon)[valerione](/maintainers/valerione)

---

Top Contributors

[![ilvalerione](https://avatars.githubusercontent.com/u/13559278?v=4)](https://github.com/ilvalerione "ilvalerione (11 commits)")[![danielebarbaro](https://avatars.githubusercontent.com/u/4376886?v=4)](https://github.com/danielebarbaro "danielebarbaro (6 commits)")

---

Tags

phpragretrievalretrieval-augmented-generationsimilarity-searchvector-database

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/neuron-core-php-vector/health.svg)

```
[![Health](https://phpackages.com/badges/neuron-core-php-vector/health.svg)](https://phpackages.com/packages/neuron-core-php-vector)
```

###  Alternatives

[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

11637.8k1](/packages/neuron-core-neuron-laravel)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[alizharb/laravel-modular

A professional, framework-agnostic modular architecture for Laravel 11+. Features zero-config autoloading, 29+ Artisan command overrides, and seamless Vite integration.

211.6k9](/packages/alizharb-laravel-modular)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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