PHPackages                             locky42/leopard-doctrine-pgvector-type - 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. [Database &amp; ORM](/categories/database)
4. /
5. locky42/leopard-doctrine-pgvector-type

ActiveLibrary[Database &amp; ORM](/categories/database)

locky42/leopard-doctrine-pgvector-type
======================================

Doctrine custom type for pgvector

1.0.3(6mo ago)01PHPPHP ^8.3

Since Sep 12Pushed 6mo agoCompare

[ Source](https://github.com/locky42/leopard-doctrine-pgvector-type)[ Packagist](https://packagist.org/packages/locky42/leopard-doctrine-pgvector-type)[ RSS](/packages/locky42-leopard-doctrine-pgvector-type/feed)WikiDiscussions main Synced 1mo ago

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

Leopard Doctrine PGVector Type
==============================

[](#leopard-doctrine-pgvector-type)

This project provides a custom Doctrine type for integrating PGVector, a PostgreSQL extension for vector similarity search, into your PHP applications.

Features
--------

[](#features)

- Seamless integration of PGVector with Doctrine ORM.
- Support for storing and querying vector data.
- Easy configuration and usage.

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

[](#requirements)

- PHP 8.3 or higher
- PostgreSQL with PGVector extension installed
- Doctrine ORM

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

[](#installation)

Install the package via Composer:

```
composer require locky42/leopard-doctrine-pgvector-type
```

Usage
-----

[](#usage)

1. **Update your entity mapping** to use the `vector` type:

```
#[ORM\Entity]
class ExampleEntity
{
    #[ORM\Column(type: "vector", options: ["dimension" => 1536], nullable: true)]
    private ?array $embedding = null;
}
```

2. **Run migrations** to apply changes to your database schema. Use `orm:schema-tool:update` command

Contributing
------------

[](#contributing)

Contributions are welcome! Please submit a pull request or open an issue for discussion.

License
-------

[](#license)

This project is licensed under the [UOS License](LICENSE).

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance71

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~7 days

Recently: every ~2 days

Total

8

Last Release

192d ago

Major Versions

0.2.0 → 1.0.02025-10-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/72bf088ea009ca7340ddb130d80d71a31ad8726ab71133a176e38326600696bb?d=identicon)[locky42](/maintainers/locky42)

---

Top Contributors

[![locky42](https://avatars.githubusercontent.com/u/57048956?v=4)](https://github.com/locky42 "locky42 (9 commits)")

### Embed Badge

![Health badge](/badges/locky42-leopard-doctrine-pgvector-type/health.svg)

```
[![Health](https://phpackages.com/badges/locky42-leopard-doctrine-pgvector-type/health.svg)](https://phpackages.com/packages/locky42-leopard-doctrine-pgvector-type)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M35](/packages/scienta-doctrine-json-functions)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)

PHPackages © 2026

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