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
- Update your entity mapping to use the
vectortype:
#[ORM\Entity] class ExampleEntity { #[ORM\Column(type: "vector", options: ["dimension" => 1536], nullable: true)] private ?array $embedding = null; }
- Run migrations to apply changes to your database schema.
Use
orm:schema-tool:updatecommand
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
其他信息
- 授权协议: Unknown
- 更新时间: 2025-10-24