定制 locky42/leopard-doctrine-pgvector-type 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

locky42/leopard-doctrine-pgvector-type

最新稳定版本:1.0.3

Composer 安装命令:

composer require locky42/leopard-doctrine-pgvector-type

包简介

Doctrine custom type for pgvector

README 文档

README

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

Features

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

Requirements

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

Installation

Install the package via Composer:

composer require locky42/leopard-doctrine-pgvector-type

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;
}
  1. Run migrations to apply changes to your database schema. Use orm:schema-tool:update command

Contributing

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

License

This project is licensed under the UOS License.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-10-24