lunarphp / search
Ecommerce search for LunarPHP
Installs: 9 933
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
pkg:composer/lunarphp/search
Requires
- php: ^8.2
 - http-interop/http-factory-guzzle: ^1.2
 - lunarphp/core: 1.1.0
 - meilisearch/meilisearch-php: ^1.10
 - spatie/laravel-data: ^4.13.1
 - typesense/typesense-php: ^4.9
 
- dev-main
 - 1.x-dev
 - 1.1.x-dev
 - 1.1.0
 - 1.0.x-dev
 - 1.0.3
 - 1.0.2
 - 1.0.1
 - 1.0.0
 - 1.0.0-beta25
 - 1.0.0-beta24
 - 1.0.0-beta23
 - 1.0.0-beta22
 - 1.0.0-beta21
 - 1.0.0-beta20
 - 1.0.0-beta19
 - 1.0.0-beta18
 - 1.0.0-beta17
 - 1.0.0-beta16
 - 1.0.0-beta15
 - 1.0.0-beta14
 - 1.0.0-beta13
 - 1.0.0-beta12
 - 0.1.0-alpha.16
 - 0.1.0-alpha.15
 - 0.1.0-alpha.14
 - 0.1.0-alpha.13
 - 0.1.0-alpha.12
 - 0.1.0-alpha.11
 - 0.1.0-alpha.10
 - 0.1.0-alpha.9
 - 0.1.0-alpha.8
 - 0.1.0-alpha.7
 - 0.1.0-alpha.6
 - 0.1.0-alpha.5
 - 0.1.0-alpha.4
 - 0.1.0-alpha.3
 - 0.1.0-alpha.2
 - 0.1.0-alpha.1
 - dev-1.0.0-prep
 - dev-feat/query-suggestions
 - dev-collection-tree
 
This package is auto-updated.
Last update: 2025-10-14 11:30:16 UTC
README
This packages brings E-Commerce search to Lunar.
Requirements
- Lunar >= 1.x
 
License
Lunar is open-sourced software licensed under the MIT license.
Installation
Require the composer package
composer require lunarphp/search
Usage
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.