PHPackages                             trinityrank/search - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. trinityrank/search

ActiveLibrary[Search &amp; Filtering](/categories/search)

trinityrank/search
==================

Search for your website

v1.3.3(3y ago)086MITJavaScriptPHP ^7.4|^8.0

Since Dec 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/trinity-rank/search)[ Packagist](https://packagist.org/packages/trinityrank/search)[ Docs](https://github.com/trinity-rank/search/)[ RSS](/packages/trinityrank-search/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/44a728340688194792dce8f4b7d4ecd32e3633b9593f60a38379f5e7ac1f3161/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7472696e69747972616e6b2f7365617263682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/trinityrank/search)[![Total Downloads](https://camo.githubusercontent.com/b46544e7d9e9a35d76d52232eaf88a9a1f401f92b7c063899e930da6d3ef9fd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7472696e69747972616e6b2f7365617263682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/trinityrank/search)

This package manage all data for search:

- import
- update
- delete)
- retrive data on frontend

We support multilanguage and shortcode ONLY if you are using our packages:

- [trinity-rank/multilanguage](https://github.com/trinity-rank/multilanguage)
- [trinity-rank/search](https://github.com/trinity-rank/search)

Installation
============

[](#installation)

- Backend
---------

[](#--backend)

### Step 1: Install package

[](#step-1-install-package)

To get started with Laravel Search, use Composer command to add the package to your composer.json project's dependencies:

```
    composer require trinityrank/search
```

### Step 2: Namespaces

[](#step-2-namespaces)

- In every tenant config add theese namespaces to include posts/pages/categories in your search

```
    ...
    // Include for search (articles, pages, categories...)
    'search' => [
        'App\\\Categories\\\Types\\\BlogCategory',
        'App\\\Categories\\\Types\\\NewsCategory',
        'App\\\Categories\\\Types\\\MoneyPageCategory',
        'App\\\Categories\\\Types\\\ReviewPageCategory',
        'App\\\Categories\\\Types\\\DealPageCategory',
        'App\\\Articles\\\Types\\\Blog',
        'App\\\Articles\\\Types\\\News',
        'App\\\Pages\\\Types\\\MoneyPage',
        'App\\\Pages\\\Types\\\ReviewPage',
        'App\\\Pages\\\Types\\\DealPage',
    ],
    ...
```

### Step 3: Add .env params

[](#step-3-add-env-params)

- Put your *host* and secret key into this variables

```
    SCOUT_QUEUE=false
    SCOUT_DRIVER=meilisearch
    MEILISEARCH_HOST=http://127.0.0.1:7700/
    MEILISEARCH_KEY=null
```

### Step 4: Update config

[](#step-4-update-config)

- Add this in config/scout.php at the end (if already exist ignore this step)

```
    ...
    'meilisearch' => [
        'host' => env('MEILISEARCH_HOST', 'http://localhost:7700'),
        'key' => env('MEILISEARCH_KEY', null),
    ],
    ...
```

### Step 5: Database

[](#step-5-database)

- You need to publish migration file from package

```
    php artisan vendor:publish --provider="Trinityrank\Search\SearchServiceProvider" --tag="search-migration"
```

And then you need to run migration for all tenants

```
    php artisan tenant:artisan "migrate"
```

Or only for one speciffic tenant

```
    php artisan tenant:artisan "migrate" --tenant=[--TENANT-ID--]
```

### Step 7: Import search data

[](#step-7-import-search-data)

- First delete all existing data and old indexes and then do fresh import data and update filters

```
    // delete
    php artisan search:delete
    php artisan search:delete-index

    // import
    php artisan search:import

    // update
    php artisan search:update-filters
```

- Frontend
----------

[](#--frontend)

### Step 1: Install package

[](#step-1-install-package-1)

Install this two packages - trinityrank/search-multitenancy: latest version - meilisearch/meilisearch-php: ^0.24.1 or latest

```
    composer require meilisearch/meilisearch-php
    composer require trinityrank/search-multitenancy
```

### Step 2: Add .env params

[](#step-2-add-env-params)

Put your **host** and secret **key** into this variables

```
    MEILISEARCH_HOST=http://127.0.0.1:7700/
    MEILISEARCH_KEY=null
```

### Step 3: Publishing

[](#step-3-publishing)

- You need to publish files from package (config and js file)

```
    php artisan vendor:publish --provider="Trinityrank\Search\SearchServiceProvider" --tag="search-config"
```

### Step 4: JS

[](#step-4-js)

- Include compiled JS file in your js mix

```
    ...
    .copy(
        'vendor/trinityrank/search/src/public/js/search.js',
        'public/js'
    )
    ...
```

- Than xecute

```
    npm run dev
```

- In your Blade file add this directive to include javascript

    - If you are adding into component add yhis part of code:

    ```
        @once
            @push('your-stack-name')
                @searchJs
            @endpush
        @endonce
    ```

    - If you are adding into layout you can add like this:

    ```
        @searchJs
    ```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

1243d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0529d66a2bad86fe77ead9c9cd33d611daaa00dcc73510603b17bab69b8ea196?d=identicon)[trinity-rank](/maintainers/trinity-rank)

---

Top Contributors

[![nebojsa-trinityrank](https://avatars.githubusercontent.com/u/87073514?v=4)](https://github.com/nebojsa-trinityrank "nebojsa-trinityrank (8 commits)")

---

Tags

searchlaravelnovatrinityrank

### Embed Badge

![Health badge](/badges/trinityrank-search/health.svg)

```
[![Health](https://phpackages.com/badges/trinityrank-search/health.svg)](https://phpackages.com/packages/trinityrank-search)
```

###  Alternatives

[titasgailius/search-relations

A Laravel Nova tool.

3587.2M4](/packages/titasgailius-search-relations)[outl1ne/nova-input-filter

An input filter for Laravel Nova

24822.7k](/packages/outl1ne-nova-input-filter)[optimistdigital/nova-input-filter

An input filter for Laravel Nova

24550.6k2](/packages/optimistdigital-nova-input-filter)[omure/scout-advanced-meilisearch

Laravel Scout extension that allows to use meilisearch advanced features as well as has an extended collection driver for testing purposes.

123.9k](/packages/omure-scout-advanced-meilisearch)[remoblaser/search

A simple to implement Search for your Application

101.5k](/packages/remoblaser-search)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
