Download the PHP package ernestdefoe/typesense without Composer

On this page you can find all versions of the php package ernestdefoe/typesense. 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 typesense

Typesense Search for Flarum

A free, drop-in Typesense search driver for Flarum 2 — fast, typo-tolerant full-text search across discussions, users and posts that anyone can set up in a few minutes.

Flarum 2 shipped a pluggable search architecture; this extension implements a Typesense driver for it. Text searches are answered by Typesense; everything else (filtering, browsing, permissions) stays exactly as Flarum does it. You choose per resource which searches Typesense answers.

Why it's safe by design

Typesense is only ever asked for candidate discussion IDs and their ranking. Which results a given user may actually see is decided entirely by Flarum's own whereVisibleTo (including tag restrictions) — never by Typesense. The search server holds no authorization logic, and the browser never talks to it. Your API key is stored server-side and is never exposed to visitors.

Requirements

Install

Run Typesense (self-hosted example)

Set up

  1. Admin → Typesense Search. Enter the host, port, protocol and API key, then Save.
  2. Click Test connection to confirm Flarum can reach the server.
  3. Click Rebuild index (or run php flarum typesense:index) to populate the index from your existing discussions.
  4. Turn on Use Typesense for discussion search and save.

That's it — searches for discussions are now served by Typesense.

Search tabs that Typesense answers show a small Powered by Typesense badge in the search modal, so you can see at a glance which searches are using the driver. Only that on/off fact is sent to the browser — connection details and the API key stay on the server.

Console

How indexing works

Several forums can share one Typesense server safely — collections are namespaced by a prefix (set one, or it's derived from your forum URL).

What's indexed

Everything Flarum can full-text search, each in its own namespaced collection:

Each is toggled independently in the admin, so you can send discussion search to Typesense while leaving users or posts on the database, or run all three through it. (Groups and access tokens have no full-text search in Flarum, so they always stay on the database driver.)

License

MIT © Ernest Defoe


All versions of typesense with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
flarum/core Version ^2.0
typesense/typesense-php Version ^4.9
symfony/http-client Version ^6.0 || ^7.0
nyholm/psr7 Version ^1.8
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 ernestdefoe/typesense contains the following files

Loading the files please wait ...