schranz-search/seal-typesense-adapter

This package is abandoned and no longer maintained. The author suggests using the cmsig/seal-typesense-adapter package instead.

An adapter to support typesense in cmsig/seal search abstraction.

Package info

github.com/PHP-CMSIG/seal-typesense-adapter

pkg:composer/schranz-search/seal-typesense-adapter

Fund package maintenance!

alexander-schranz

paypal.me/L91

Statistics

Installs: 1 589

Dependents: 1

Suggesters: 0

Stars: 4

0.12.14 2026-06-08 06:10 UTC

Requires

Suggests

None

Conflicts

MIT 76608279b3e77f7d276ddf008c80b2ff528ed5c4

  • Alexander Schranz <alexander.woop@sulu.io>

typesensesealseal-adaptersearch-clientcmsigcmsig-seal-adapter


README

Note: This is part of the cmsig/search project create issues in the main repository.

Your feedback is important 📘
Are you working with SEAL? Let us know! | Which Search Engines do you use and why?




👁 SEAL Logo with an abstract seal sitting on a telescope.
Logo created by Meine Wilma

SEAL
Typesense Adapter



The TypesenseAdapter write the documents into a Typesense server instance.

Note: This project is heavily under development and any feedback is greatly appreciated.

Installation

Use composer for install the package:

composer require cmsig/seal cmsig/seal-typesense-adapter

Usage.

The following code shows how to create an Engine using this Adapter:

<?php

use Http\Client\Curl\Client as CurlClient;
use Http\Discovery\Psr17FactoryDiscovery;
use CmsIg\Seal\Adapter\Typesense\TypesenseAdapter;
use CmsIg\Seal\Engine;
use Typesense\Client;

$client = new Client(
 [
 'api_key' => 'S3CR3T',
 'nodes' => [
 [
 'host' => '127.0.0.1',
 'port' => '8108',
 'protocol' => 'http',
 ],
 ],
 'client' => new CurlClient(Psr17FactoryDiscovery::findResponseFactory(), Psr17FactoryDiscovery::findStreamFactory()),
 ]
);

$engine = new Engine(
 new TypesenseAdapter($client),
 $schema,
);

Via DSN for your favorite framework:

typesense://S3CR3T@127.0.0.1:8108

Or with TLS enabled (uses https and defaults to port 443):

typesense://S3CR3T@127.0.0.1?tls=true
typesense://S3CR3T@127.0.0.1:443?tls=true

Authors