Download the PHP package acseo/typesense-bundle without Composer

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

ACSEOTypesenseBundle

This bundle provides integration with Typesense with Symfony.

It relies on the official TypeSense PHP package

Features include:

Installation

Install the bundle using composer

`

Enable the bundle in you Symfony project

Configuration

Configure the Bundle

You can use basic types supported by Typesense for your fields : string, int32, float, etc. You can also use specific type names, such as : primary, collection, object

Data conversion from Doctrine entity to Typesense data is managed by ACSEO\TypesenseBundle\Transformer\DoctrineToTypesenseTransformer

Usage

Create index and populate data

This bundle comes with useful commands in order to create and index your data

Search documents

This bundle creates dynamic generic finders services that allows you to query Typesense

The finder services are named like this : typesense.finder.collection_name

You can inject the generic finder in your Controller or into other services.

You can also create specific finder for a collection. See documentation below.

Querying Typesense

The class TypesenseQuery() class takes 2 arguments :

You can create more complex queries using all the possible Typsense search arguments

Create specific finder for a collection

You can easily create specific finders for each collection that you declare.

This configuration will create a service named @typesense.finder.books.books_autocomplete.
You can inject the specific finder in your Controller or into other services

and then use it like this :

Use different kind of services

This bundles creates different services that you can use in your Controllers or anywhere you want.

Note : there a other services. You can use the debug:container command in order to see all of them.

Doctrine Listeners

Doctrine listeners will update Typesense with Entity data during the following events :

Perform multisearch

You can create multisearch requests and get results using the collectionClient service.

Cookbook


Testing the Bundle

tests are written in the tests directory.

You can launch the tests with the following commands :


All versions of typesense-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4||^8.0
doctrine/orm Version ^2.8 || ^3.2
symfony/framework-bundle Version ^4.3|^5|^6.0|^7.0
symfony/console Version ^4.3.4|^5|^6.0|^7.0
typesense/typesense-php Version ^4.1.0
php-http/curl-client Version ^2.2
monolog/monolog Version ^2.3|^3.0
symfony/property-access Version ^3.4|^4.3|^5|^6.0|^7.0
symfony/http-client Version ^5.4|^6.2|^7.0
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 acseo/typesense-bundle contains the following files

Loading the files please wait ....