Download the PHP package teamtnt/tntsearch without Composer

On this page you can find all versions of the php package teamtnt/tntsearch. 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?
teamtnt/tntsearch
Rate from 1 - 5
Rated 5.00 based on 1 reviews

Informations about the package tntsearch

Latest Version on Packagist Total Downloads Build Status Slack Status

TNTSearch

TNTSearch

TNTSearch is a full-text search (FTS) engine written entirely in PHP. A simple configuration allows you to add an amazing search experience in just minutes. Features include:

We also created some demo pages that show tolerant retrieval with n-grams in action. The package has a bunch of helper functions like Jaro-Winkler and Cosine similarity for distance calculations. It supports stemming for English, Croatian, Arabic, Italian, Russian, Portuguese and Ukrainian. If the built-in stemmers aren't enough, the engine lets you easily plugin any compatible snowball stemmer. Some forks of the package even support Chinese. And please contribute other languages!

Unlike many other engines, the index can be easily updated without doing a reindex or using deltas.

View online demo  |  Follow us on Twitter, or Facebook  |  Visit our sponsors:


Demo

Tutorials

Premium products

If you're using TNT Search and finding it useful, take a look at our premium analytics tool:

Support us on Open Collective

Installation

The easiest way to install TNTSearch is via composer:

Requirements

Before you proceed, make sure your server meets the following requirements:

Examples

Creating an index

In order to be able to make full text search queries, you have to create an index.

Usage:

Important: "storage" settings marks the folder where all of your indexes will be saved so make sure to have permission to write to this folder otherwise you might expect the following exception thrown:

Note: If your primary key is different than id set it like:

Making the primary key searchable

By default, the primary key isn't searchable. If you want to make it searchable, simply run:

Searching

Searching for a phrase or keyword is trivial:

The ORDER BY FIELD clause is important, otherwise the database engine will not return the results in the required order.

Boolean Search

Fuzzy Search

The fuzziness can be tweaked by setting the following member variables:

Updating the index

Once you created an index, you don't need to reindex it each time you make some changes to your document collection. TNTSearch supports dynamic index updates.

Custom Tokenizer

First, create your own Tokenizer class. It should extend AbstractTokenizer class, define word split $pattern value and must implement TokenizerInterface:

This tokenizer will split words using spaces, commas and periods.

After you have the tokenizer ready, you should pass it to TNTIndexer via setTokenizer method.

Another way would be to pass the tokenizer via config:

Geo Search

Indexing

Searching

Classification

Saving the classifier

Loading the classifier

Drivers

PS4Ware

You're free to use this package, but if it makes it to your production environment, we would highly appreciate you sending us a PS4 game of your choice. This way you support us to further develop and add new features.

Our address is: TNT Studio, Sv. Mateja 19, 10010 Zagreb, Croatia.

We'll publish all received games here

Support

Buy Me a Coffee at ko-fi.com

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

Credits

License

The MIT License (MIT). Please see License File for more information.


From Croatia with ♥ by TNT Studio (@tntstudiohr, blog)


All versions of tntsearch with dependencies

PHP Build Version
Package Version
Requires php Version ~7.1|^8
ext-pdo_sqlite Version *
ext-sqlite3 Version *
ext-mbstring Version *
predis/predis Version ^2.2
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 teamtnt/tntsearch contains the following files

Loading the files please wait ....