Download the PHP package hejunjie/milvus without Composer

On this page you can find all versions of the php package hejunjie/milvus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package milvus

hejunjie/milvus

English | 简体中文

A lightweight PHP library for interacting with the Milvus vector database via RESTful API — manage collections, insert data, and perform vector searches, all in one place.

This project has been parsed by Zread. Click here for a quick overview of the project structure.

Requirements

Installation

Quick Start

API Overview

All methods are accessed via chained calls, organized by module:

Client

Method Description
customize($url, $params) Custom request for calling APIs not yet wrapped

Collections

Method Description
create($name, $schema, $indexParams) Create a collection
describe($name) Get collection details
drop($name) Drop a collection
get_load_state($name) Get collection load state
get_stats($name) Get collection statistics
has($name) Check if a collection exists
list() List all collections
load($name) Load a collection into memory
release($name) Release a collection from memory
rename($name, $newName) Rename a collection
alter_properties($name, $properties) Set collection properties (e.g., TTL, mmap)
drop_properties($name, $keys) Remove collection properties

Partitions

Method Description
create($collectionName, $partitionName) Create a partition
drop($collectionName, $partitionName) Drop a partition
get_stats($collectionName, $partitionName) Get partition load state
has($collectionName, $partitionName) Check if a partition exists
list($collectionName) List all partitions
load($collectionName, $partitionNames) Load partitions into memory
release($collectionName, $partitionNames) Release partitions from memory

Indexes

Method Description
create($collectionName, $indexParams) Create an index
describe($collectionName, $indexName) Get index details
drop($collectionName, $indexName) Drop an index
list($collectionName) List all indexes

Aliases

Method Description
alter($collectionName, $aliasName) Alter an alias
create($collectionName, $aliasName) Create an alias
describe($collectionName, $aliasName) Get alias details
drop($collectionName, $aliasName) Drop an alias
list($collectionName) List all aliases

Entities

Method Description
insert($collectionName, $data, $partitionName) Insert data
upsert($collectionName, $data, $partitionName) Insert or update data
delete($collectionName, $filter, $partitionName) Delete data by filter
get($collectionName, $ids, $outputFields, $partitionNames) Get data by primary key
query($collectionName, $filter, $limit, $offset, $outputFields, $partitionNames) Query data by filter
search($collectionName, $data, $annsField, $limit, $offset, $partitionNames) Vector similarity search

[!NOTE] All methods have full PHPDoc comments with parameter details. For more information on Milvus RESTful API parameters, refer to the Zilliz official documentation.

Notes

Motivation

I was reading short stories on a novel site that didn't support search and had daily reading limits. Frustrated, I wrote a crawler to download all the stories — but then I couldn't find anything in them locally.

My tiny 2-core 2GB server couldn't run a Milvus instance, but Zilliz Cloud offers a free tier. I run vectorization on my Mac, and use SiliconFlow's free quota for vector queries during search. I just needed a PHP library to tie it all together — and that's how this library came to be.

Contributing

If you find this library useful, give it a ⭐ Star, or submit an Issue / PR to share your ideas.


All versions of milvus with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hejunjie/milvus contains the following files

Loading the files please wait ...