Download the PHP package hamaka/silverstripe-typesense without Composer

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

Silverstripe Typesense

Full-page Typesense search for Silverstripe CMS 5. The module indexes each page as a visitor sees it, so content from elements, blocks and templates is searchable too, not only the Content field. It also ships an instant-search overlay that shows results while you type.

It is built on top of elliotsawyer/silverstripe-typesense, which provides the Typesense client, the collection models and the CMS admin.

How this differs from elliotsawyer/silverstripe-typesense

elliotsawyer/silverstripe-typesense This module
What gets indexed Database fields you configure per collection The rendered page as plain text (FullPage), plus Title and URL
Keeping the index up to date Sync task / queued jobs Automatic upsert on publish, delete on unpublish or when Show in search is off, plus its own sync task
Frontend None Instant-search overlay (InstantSearch.js), ?q= in the URL with back-button support, GA4 / Tag Manager / Matomo events
Local development — _local collection suffix so local and production indexes don't mix

The admin for collections, fields and synonyms is still the one from Elliot Sawyer's module. This module turns his sync task off and replaces it with TypesenseSyncTaskHmk.

Requirements

Installation

Then run vendor/bin/sake dev/build flush=1.

Quick start

  1. Add the environment variables to your .env:

  2. Define a collection: copy _config/typesense.yml.example to app/_config/typesense.yml and give it a unique name.

  3. Build the index:

  4. Add the overlay to your template and load the script:

From then on, every publish updates the index.

Documentation

Changelog

See Releases for the changes in each version.

Credits and license

This module is released under the MIT license.

It depends on elliotsawyer/silverstripe-typesense by Elliot Sawyer, licensed under LGPL-3.0 with attribution. src/Tasks/TypesenseSyncTask.php is derived from that module's sync task and keeps its original copyright header.


All versions of silverstripe-typesense with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
silverstripe/framework Version ^5.0
elliotsawyer/silverstripe-typesense Version ^0.0.7
ext-dom Version *
ext-libxml Version *
masterminds/html5 Version ^2.9
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 hamaka/silverstripe-typesense contains the following files

Loading the files please wait ...