Prerequisites
- PHP 7.4 or higher
- Composer
- A Meilisearch instance. The fastest way to get one is a Meilisearch Cloud project: free trial, no credit card required. From your terminal,
meili trial startcreates your account and a trial project in one command, see the CLI quick start. You can also run Meilisearch locally for development
1. Install the SDK
2. Connect to Meilisearch
3. Add documents
4. Search
5. Search with filters
First, configure filterable attributes:Full example
Laravel integration
For Laravel applications, use Laravel Scout with the Meilisearch driver:.env:
Next steps
Laravel Scout
Full Laravel integration guide
Full-text search
Configure ranking and relevancy
Filtering
Add filters and facets
API reference
Explore all search parameters