PHPackages                             voyanara/milvus-php-sdk - 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. voyanara/milvus-php-sdk

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

voyanara/milvus-php-sdk
=======================

A modern, type-safe PHP SDK for Milvus vector database. This library provides a clean, intuitive interface for managing collections, users, roles, and privileges in Milvus through its REST API.

1.0.5(9mo ago)679MITPHPPHP ^8.1

Since Sep 20Pushed 9mo agoCompare

[ Source](https://github.com/Voyanara/milvus-php-sdk)[ Packagist](https://packagist.org/packages/voyanara/milvus-php-sdk)[ RSS](/packages/voyanara-milvus-php-sdk/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (4)Versions (8)Used By (0)

🚀 Milvus PHP SDK - Modern Vector Database Client
================================================

[](#-milvus-php-sdk---modern-vector-database-client)

[![PHP Version](https://camo.githubusercontent.com/d94da5b84eac3af68cb611609ef21f04dff28b2bfb3daf366d3922a79a475838/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e312d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![Latest Version on Packagist](https://camo.githubusercontent.com/5580d31e4833d49a3dcbdc4ddf23cbdcc1158b0301d40bd118d1949b3e8bd86e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766f79616e6172612f6d696c7675732d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/voyanara/milvus-php-sdk)[![Total Downloads](https://camo.githubusercontent.com/833f295817f2c3ad3d38e71fc8c4b8c6941946f350181f7177ee1cff213db9b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766f79616e6172612f6d696c7675732d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/voyanara/milvus-php-sdk)

A modern, type-safe PHP SDK for [Milvus](https://milvus.io/) vector database API v2. This library provides a clean, intuitive interface for managing collections, users, roles, and privileges in Milvus through its REST API.

Built with [Saloon HTTP](https://docs.saloon.dev/) for robust API communication, this SDK focuses on developer experience with proper type hints, comprehensive error handling, and a fluent API design.

Perfect for applications requiring vector similarity search, AI/ML workflows, and large-scale data processing with semantic search capabilities.

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

[](#requirements)

- PHP 8.1 or higher
- Milvus 2.6.x (or compatible versions)
- Laravel 10.x, 11.x, 12.x (for Laravel integration)

Versions
--------

[](#versions)

Milvus VersionSDK Versionv2.6.xv1.0.xDocumentation
-------------

[](#documentation)

- [Milvus REST API Reference](https://milvus.io/api-reference/restful/v2.6.x/About.md) - Official Milvus RESTful API documentation

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

[](#installation)

You can install the package via Composer:

```
composer require voyanara/milvus-php-sdk
```

### Docker Development Environment

[](#docker-development-environment)

For development and testing, you can quickly spin up a Milvus instance using the included Docker Compose configuration:

```
docker-compose up -d
```

This will start Milvus with all necessary dependencies (etcd, MinIO) and expose it on the default port 19530.

### Laravel Integration

[](#laravel-integration)

This package includes Laravel service provider for seamless integration:

```
# After installation, publish the configuration file
php artisan milvus-php-sdk:install
```

This command will publish the configuration file to `config/milvus-php-sdk.php` where you can set your Milvus connection parameters.

#### Configuration

[](#configuration)

Add the following environment variables to your `.env` file:

```
# For local development with Docker
MILVUS_TOKEN=root:Milvus
MILVUS_HOST=http://localhost
MILVUS_PORT=19530

# For Zilliz Cloud (hosted Milvus)
MILVUS_TOKEN=db_randomstring:your_password
MILVUS_HOST=https://in03.serverless.gcp-us-west1.cloud.zilliz.com
MILVUS_PORT=443
```

Roadmap
-------

[](#roadmap)

### ✅ Implemented Features

[](#-implemented-features)

- **User Management** - Complete user operations (create, describe, drop, list, update password)
- **Role Management** - Full role-based access control (create, drop, describe, list, grant/revoke privileges)
- **Collection Management** - Complete collection operations and schema management (create, drop, describe, list, load, release, rename, etc.)
- **Vector Operations** - Complete vector data operations (insert, search, query, upsert, get, delete, hybrid search)

### 🚧 In Development

[](#-in-development)

- **Index Management** - Vector index creation and optimization

### 📋 Planned Features

[](#-planned-features)

- **Alias Management** - Collection alias operations
- **Database Management** - Multi-database support
- **Import Operations** - Bulk data import functionality
- **Partition Management** - Data partitioning for better performance
- **Resource Group** - Resource allocation and management

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

```
