PHPackages                             lee-to/moonshine-algolia-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. lee-to/moonshine-algolia-search

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

lee-to/moonshine-algolia-search
===============================

Algolia global search for MoonShine

1.0.0(3y ago)12.3kMITBladePHP ^8.0|^8.1|^8.2

Since May 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/lee-to/moonshine-algolia-search)[ Packagist](https://packagist.org/packages/lee-to/moonshine-algolia-search)[ Docs](https://moonshine.cutcode.dev)[ RSS](/packages/lee-to-moonshine-algolia-search/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

### Algolias search for MoonShine

[](#algolias-search-for-moonshine)

As a result, all menu items will be indexed, including groups, resources, resource entries and custom pages

### Installation

[](#installation)

```
composer require lee-to/moonshine-algolia-search
```

Publish config

```
php artisan vendor:publish --provider="Leeto\MoonShineAlgoliaSearch\Providers\MoonShineAlgoliaSearchServiceProvider"
```

Register on the , get the keys and set in config `config/algolia.php`

```
return [
    'app_id' => env('ALGOLIA_APP_ID'),
    'admin_key' => env('ALGOLIA_ADMIN_KEY'),
    'frontend_key' => env('ALGOLIA_FRONTEND_KEY'),
];
```

MoonShine config (app/moonshine.php)

```
// ...
'header' => 'algolia-search::global-search'
// ...
```

Create indexes

```
php artisan algolia-search:indexes
```

If you want to customize fields for models, implement the HasGlobalAlgoliaSearch interface

```
use Illuminate\Database\Eloquent\Model;
use Leeto\MoonShineAlgoliaSearch\Contracts\HasGlobalAlgoliaSearch;

class Post extends Model implements HasGlobalAlgoliaSearch
{
    public function globalSearch(): array
    {
        return [
            'description' => $this->text,
            'image' => $this->thumbnail
        ];
    }
}
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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 ~1 days

Total

2

Last Release

1106d ago

Major Versions

0.9.0 → 1.0.02023-05-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1861327?v=4)[Danil Shutsky](/maintainers/lee-to)[@lee-to](https://github.com/lee-to)

---

Top Contributors

[![lee-to](https://avatars.githubusercontent.com/u/1861327?v=4)](https://github.com/lee-to "lee-to (7 commits)")

---

Tags

moonshine

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lee-to-moonshine-algolia-search/health.svg)

```
[![Health](https://phpackages.com/badges/lee-to-moonshine-algolia-search/health.svg)](https://phpackages.com/packages/lee-to-moonshine-algolia-search)
```

###  Alternatives

[algolia/scout-extended

Scout Extended extends Laravel Scout adding algolia-specific features

4186.3M6](/packages/algolia-scout-extended)[algolia/algoliasearch-magento-2

Algolia Search &amp; Discovery extension for Magento 2

1881.8M16](/packages/algolia-algoliasearch-magento-2)[algolia/search-bundle

Algolia Search integration for Symfony

1931.5M2](/packages/algolia-search-bundle)[studioespresso/craft-scout

Craft Scout provides a simple solution for adding full-text search to your entries. Scout will automatically keep your search indexes in sync with your entries.

80136.8k](/packages/studioespresso-craft-scout)[algolia/laravel-scout-settings

Import/Export Algolia settings into your Laravel Scout project

23396.9k](/packages/algolia-laravel-scout-settings)[trendyminds/algolia

Easily pull search results from Algolia into your Craft CMS website

1332.2k](/packages/trendyminds-algolia)

PHPackages © 2026

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