Download the PHP package voyanara/milvus-php-sdk without Composer
On this page you can find all versions of the php package voyanara/milvus-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download voyanara/milvus-php-sdk
More information about voyanara/milvus-php-sdk
Files in voyanara/milvus-php-sdk
Package milvus-php-sdk
Short Description 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.
License MIT
Informations about the package milvus-php-sdk
🚀 Milvus PHP SDK - Modern Vector Database Client
A modern, type-safe PHP SDK for Milvus 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 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
- PHP 8.1 or higher
- Milvus 2.6.x (or compatible versions)
- Laravel 10.x, 11.x, 12.x (for Laravel integration)
Versions
| Milvus Version | SDK Version |
|---|---|
| v2.6.x | v1.0.x |
Documentation
- Milvus REST API Reference - Official Milvus RESTful API documentation
Installation
You can install the package via Composer:
Docker Development Environment
For development and testing, you can quickly spin up a Milvus instance using the included Docker Compose configuration:
This will start Milvus with all necessary dependencies (etcd, MinIO) and expose it on the default port 19530.
Laravel Integration
This package includes Laravel service provider for seamless integration:
This command will publish the configuration file to config/milvus-php-sdk.php where you can set your Milvus connection parameters.
Configuration
Add the following environment variables to your .env file:
Roadmap
✅ 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
- Index Management - Vector index creation and optimization
📋 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
Basic Usage
Using with Zilliz Cloud
For Zilliz Cloud (hosted Milvus), configure the client with your cloud credentials:
Using with Laravel
Once configured, you can use the Milvus facade throughout your Laravel application:
Vector Operations Examples
Vector Search
Perform semantic search using vector embeddings:
Vector Upsert
Insert new vectors or update existing ones based on primary key:
Creating a Milvus Collection
Quick example of creating a collection with vector field:
License
This project is licensed under the MIT License - see the LICENSE file for details.