👨‍💻
Hasan Mert ERMİŞ
  • Main
  • Milvus 2 gRPC Php Client
    • Installing the php grpc plugin
    • Create Collection ( Attu )
    • Install Package ( Composer )
    • Connection And Get Collections
    • Inserting data to the collection
    • Deleting data in a collection
    • Vector search in collection ( Php Client )
    • Vector search in collection ( Attu )
    • Update vector
Powered by GitBook
On this page
  • Code
  • Response
  • Video
  1. Milvus 2 gRPC Php Client

Connection And Get Collections

Code

<?php

use Hasanmertermis\MilvusPhpClient\Domain\Milvus;

require_once __DIR__ . "/vendor/autoload.php";

$client = new Milvus();

$client->connection("localhost", 19530);

try {
    $collections = $client->getCollections();
    print_r($collections);
} catch (Exception $e) {
    print_r($e->getMessage());
}

Response

Array
(
    [0] => example_collection
)

Video

PreviousInstall Package ( Composer )NextInserting data to the collection

Last updated 2 years ago