Download the PHP package glueful/meilisearch without Composer

On this page you can find all versions of the php package glueful/meilisearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package meilisearch

Glueful Meilisearch Extension

Full-text search integration for the Glueful Framework using Meilisearch.

Overview

The Meilisearch extension provides seamless integration between Glueful Framework and Meilisearch, an open-source, lightning-fast search engine. This extension enables models to be searchable with minimal configuration while providing advanced search features like typo tolerance, filtering, faceting, and geo-search.

Features

Installation

Installation (Recommended)

Install via Composer

Composer discovers packages of type glueful-extension, but installing does not auto-enable them — the provider must be in config/extensions.php's enabled allow-list. Enable/disable in development (these commands edit config/extensions.php and recompile the cache):

In production, manage the enabled list in config and run php glueful extensions:cache in your deploy step.

Local Development Installation

To develop the extension locally, register it as a Composer path repository in your app's composer.json, then require and enable it:

Verify Installation

Check status and details:

Requirements

Installing Meilisearch Server

The extension requires a running Meilisearch server. Choose one of the following installation methods:

Docker (Recommended)

Homebrew (macOS)

Binary Download

Download the latest binary for your platform from the Meilisearch releases page or follow the official installation guide.

Meilisearch Cloud

For production, consider Meilisearch Cloud for a fully managed solution.

Configuration

Set the following environment variables in your .env file:

Configuration File

The extension configuration is located at config/meilisearch.php:

Usage

Making Models Searchable

Add the Searchable trait to any model. Implementing SearchableInterface is recommended for static analysis type checking:

By default, the trait indexes only the primary identifier. Override toSearchableArray() to expose fields intentionally; do not return a full model row unless every field is safe for search indexing and retrieval.

HTTP Search Routes

The request-facing search routes require:

Private indexes also require a configured server-side filter. For example:

Caller-provided filter values are combined with the server-side filter using AND. attributesToRetrieve is rejected unless every requested field is in the configured retrievable list for that index. If the caller omits attributesToRetrieve, the configured retrievable list is used; if none is configured, only id is returned.

Basic Searching

Filtering

Sorting

Pagination

Faceted Search

Geo-Search

For location-based models, add geo data to your searchable array:

Search by location:

Highlighting

Manual Indexing

Index Management

CLI Commands

Index Models

Check Index Status

Sync Index Settings

Flush Index

Debug Search

API Endpoints

All endpoints are prefixed with /api/search and require authentication.

Search

Query parameters:

Admin

Transaction-Safe Indexing

The extension automatically defers indexing operations until after database transactions commit:

Queue Support

Enable queue-based indexing for better performance in production:

When enabled, indexing operations are dispatched to the queue after transaction commit, ensuring both data consistency and non-blocking request handling.

Run the queue worker:

Primary Key Strategy

The extension uses id as the Meilisearch primary key field name for all indexes. The model's actual key (uuid or id) is mapped to this field:

This ensures consistent behavior across all searchable models and proper document hydration.

Performance Considerations

Troubleshooting

Common Issues

  1. Models not appearing in search: Ensure shouldBeSearchable() returns true and the model was saved after adding the trait.

  2. Filters not working: Verify the attribute is listed in getSearchableFilterableAttributes() and run php glueful search:sync.

  3. Sort not working: Verify the attribute is listed in getSearchableSortableAttributes() and run php glueful search:sync.

  4. Connection errors: Check MEILISEARCH_HOST and MEILISEARCH_KEY are correct. Verify Meilisearch is running.

  5. Index not found: The extension auto-creates indexes on first use. If issues persist, manually create with search:index --fresh.

Debugging

License

This extension is licensed under the same license as the Glueful Framework.

Support

For issues, feature requests, or questions:


All versions of meilisearch with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
meilisearch/meilisearch-php Version ^1.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package glueful/meilisearch contains the following files

Loading the files please wait ...