PHPackages                             lunarphp/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. lunarphp/search

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

lunarphp/search
===============

Ecommerce search for LunarPHP

1.3.0(6mo ago)111.7k↑11.1%MITPHPPHP ^8.2

Since Oct 16Pushed 2mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (46)Used By (0)

Lunar Search
------------

[](#lunar-search)

This packages brings E-Commerce search to Lunar.
------------------------------------------------

[](#this-packages-brings-e-commerce-search-to-lunar)

Requirements
------------

[](#requirements)

- Lunar &gt;= 1.x

License
-------

[](#license)

Lunar is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

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

[](#installation)

### Require the composer package

[](#require-the-composer-package)

```
composer require lunarphp/search
```

Usage
-----

[](#usage)

### Basic Search

[](#basic-search)

At a basic level, you can search models using the provided facade.

```
use Lunar\Search\Facades\Search;

// Search on a specific model
$results = Search::on(\Lunar\Models\Collection::class)->query('Hoodies')->get();

// Search on Lunar\Models\Product by default.
$results = Search::query('Hoodies')->get();
```

Under the hood this will detect what Scout driver is mapped under `lunar.search.engine_map` and then perform a search using that given driver. To increase performance the results will not be hydrated from the database, but instead will be the raw results from the search provider.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance77

Regular maintenance activity

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~0 days

Total

42

Last Release

187d ago

Major Versions

0.1.0-alpha.16 → 1.0.0-beta142025-02-26

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/112434999?v=4)[Lunar - Headless E-Commerce for Laravel](/maintainers/lunarphp)[@lunarphp](https://github.com/lunarphp)

---

Top Contributors

[![alecritson](https://avatars.githubusercontent.com/u/1488016?v=4)](https://github.com/alecritson "alecritson (26 commits)")

---

Tags

searchlaravelheadlessshopecommercestoree-commercelunarphp

### Embed Badge

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

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

###  Alternatives

[lunarphp/stripe

Stripe payment driver for Lunar.

2055.8k4](/packages/lunarphp-stripe)[getcandy/core

GetCandy Laravel e-commerce core functionality.

156.6k3](/packages/getcandy-core)

PHPackages © 2026

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