PHPackages                             laravel-enso/algolia - 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. laravel-enso/algolia

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

laravel-enso/algolia
====================

Algolia integration layer for Laravel Enso

2.0.2(2mo ago)02261MITPHPPHP ^8.0

Since Aug 12Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/laravel-enso/algolia)[ Packagist](https://packagist.org/packages/laravel-enso/algolia)[ Docs](https://www.laravel-enso.com)[ RSS](/packages/laravel-enso-algolia/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (17)Used By (0)

Algolia
=======

[](#algolia)

[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Stable](https://camo.githubusercontent.com/8db240ee4573d212657d70c0f9ad94d8ab1f95cae150c43daf04392df3c1273e/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f616c676f6c69612f76657273696f6e)](https://packagist.org/packages/laravel-enso/algolia)[![Downloads](https://camo.githubusercontent.com/5870320cf6a32683571cbb4a2ffd49ff11fa5b35db8d12c4ec2173ae0a6bed41/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f616c676f6c69612f646f776e6c6f616473)](https://packagist.org/packages/laravel-enso/algolia)[![PHP](https://camo.githubusercontent.com/ef6afd4ccdaa708a9b1a0a353d6d03a13ca1f03887b8db701d4118dc30a6735a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302532422d3737376262342e737667)](composer.json)[![Issues](https://camo.githubusercontent.com/073b3572ef0f895309b3dd56b123eb5303b43f1248af2210c97f4926d320ee24/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c61726176656c2d656e736f2f616c676f6c69612e737667)](https://github.com/laravel-enso/algolia/issues)[![Merge Requests](https://camo.githubusercontent.com/9ac0b3e0d0ea4dff3e6ee74bc846babc80bba1b55cc817381d2fbb22246db751/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6c61726176656c2d656e736f2f616c676f6c69612e737667)](https://github.com/laravel-enso/algolia/pulls)

Description
-----------

[](#description)

Algolia adds the Enso integration layer for Algolia-backed search.

The package stores the runtime toggle for the integration, exposes the settings form used from the backoffice, and ships an artisan command that wraps `scout:import` and then updates index settings such as searchable attributes and faceting.

It is designed for Enso models that are already indexed through Laravel Scout Extended and need their Algolia configuration aligned with the application's filterable and searchable fields.

Installation
------------

[](#installation)

Install the package:

```
composer require laravel-enso/algolia
```

Run the package migrations:

```
php artisan migrate
```

Make sure the host application is already configured for Algolia through Laravel Scout / Scout Extended. This package does not replace the base Scout configuration.

Features
--------

[](#features)

- Persists a single settings record used to enable or disable the Algolia integration from the Enso UI.
- Registers the settings routes and menu structure under `Integrations -> Algolia -> Settings`.
- Provides the `enso:algolia:import` command for bulk imports.
- Updates `searchableAttributes` and `attributesForFaceting` after each import based on the model's current static configuration.

Usage
-----

[](#usage)

Enable the integration from the Algolia settings screen or by updating the `algolia_settings` record.

Models imported with the package command are expected to expose the static configuration methods used when updating the index:

```
public static function filterableAttributes(): array
{
    return ['brand', 'categoryId'];
}

public static function searchableAttributes(): array
{
    return ['name', 'sku'];
}
```

Import a model into Algolia and immediately refresh the related index settings:

```
php artisan enso:algolia:import "App\\Models\\Product"
```

API
---

[](#api)

### HTTP routes

[](#http-routes)

- `GET api/integrations/algolia/settings`
- `PATCH api/integrations/algolia/settings/{settings}`

Route names:

- `integrations.algolia.settings.index`
- `integrations.algolia.settings.update`

### Artisan commands

[](#artisan-commands)

- `enso:algolia:import {model} {--chunk=}`

Behavior:

- delegates the bulk import to `scout:import`
- listens for `ModelsImported`
- updates Algolia faceting and searchable settings after import completion

Depends On
----------

[](#depends-on)

Required Enso packages:

- [`laravel-enso/core`](https://docs.laravel-enso.com/backend/core.html) [↗](https://github.com/laravel-enso/core)

Required external packages:

- [`algolia/scout-extended`](https://github.com/algolia/scout-extended) [↗](https://github.com/algolia/scout-extended)

Companion frontend package:

- [`@enso-ui/algolia`](https://docs.laravel-enso.com/frontend/algolia.html) [↗](https://github.com/enso-ui/algolia)

Contributions
-------------

[](#contributions)

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance86

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~157 days

Total

13

Last Release

68d ago

Major Versions

1.1.0 → 2.0.02022-02-25

1.4.1 → 2.0.12026-04-28

PHP version history (2 changes)1.0.0PHP &gt;=8.0

1.2.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16073274?v=4)[Adrian Ocneanu](/maintainers/aocneanu)[@aocneanu](https://github.com/aocneanu)

---

Top Contributors

[![aocneanu](https://avatars.githubusercontent.com/u/16073274?v=4)](https://github.com/aocneanu "aocneanu (8 commits)")[![vmcvlad](https://avatars.githubusercontent.com/u/37445394?v=4)](https://github.com/vmcvlad "vmcvlad (6 commits)")[![gandesc](https://avatars.githubusercontent.com/u/14071925?v=4)](https://github.com/gandesc "gandesc (5 commits)")[![AbdullahiAbdulkabir](https://avatars.githubusercontent.com/u/33360580?v=4)](https://github.com/AbdullahiAbdulkabir "AbdullahiAbdulkabir (2 commits)")[![GITmanuela](https://avatars.githubusercontent.com/u/44998004?v=4)](https://github.com/GITmanuela "GITmanuela (2 commits)")

### Embed Badge

![Health badge](/badges/laravel-enso-algolia/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-enso-algolia/health.svg)](https://phpackages.com/packages/laravel-enso-algolia)
```

###  Alternatives

[laravel-enso/localisation

Language and translation management for Laravel Enso

1362.8k11](/packages/laravel-enso-localisation)[laravel-enso/data-import

Excel Importer dependency for Laravel Enso

2044.0k6](/packages/laravel-enso-data-import)[laravel-enso/permissions

Permission management for Laravel Enso

1244.2k52](/packages/laravel-enso-permissions)[laravel-enso/logs

Application log management for Laravel Enso

1143.7k9](/packages/laravel-enso-logs)[laravel-enso/tutorials

Tutorial management backend for Laravel Enso

1140.7k](/packages/laravel-enso-tutorials)[laravel-enso/roles

Role management for Laravel Enso

1044.9k32](/packages/laravel-enso-roles)

PHPackages © 2026

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