Registry / http-client / typesense-typesense-php

typesense-typesense-php

JSON →
library6.0.0phppackagistunverified

PHP client for Typesense Search Server, providing full-text search and filtering capabilities.

composer require typesense/typesense-php
INSTALL
IMPORT
SIG · TYPESENSE-TYPESENS
T
typesense-typesense-php
http-clientphpv6.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use Typesense\Client;

Initialize client and perform a search query.

<?php require 'vendor/autoload.php'; use Typesense\Client; $client = new Client(['api_key' => 'xyz', 'nodes' => [['host' => 'localhost', 'port' => '8108', 'protocol' => 'http']]]); $result = $client->collections['books']->documents->search(['q' => 'harry']); print_r($result);
Debug
Known issues
breakingBreaking changes between v5 and v6: API key configuration format changed.
fix
Update configuration array to use 'api_key' key instead of 'key'.
affects: >=6.0.0
Upgrade
Version history
6.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
30
Amazon
1
Resources
typesense-typesense-php — pip install typesense-typesense-php · libregistry