Download the PHP package meilisearch/meilisearch-php without Composer
On this page you can find all versions of the php package meilisearch/meilisearch-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download meilisearch/meilisearch-php
More information about meilisearch/meilisearch-php
Files in meilisearch/meilisearch-php
Package meilisearch-php
Short Description PHP wrapper for the Meilisearch API
License MIT
Informations about the package meilisearch-php
Meilisearch PHP
Meilisearch |
Meilisearch Cloud |
Documentation |
Discord |
Roadmap |
Website |
FAQ
⚡ The Meilisearch API client written for PHP 🐘
Meilisearch PHP is the Meilisearch API client for PHP developers.
Meilisearch is an open-source search engine. Learn more about Meilisearch.
Table of Contents
- 📖 Documentation
- ⚡ Supercharge your Meilisearch experience
- 🔧 Installation
- 🚀 Getting started
- 🤖 Compatibility with Meilisearch
- 💡 Learn more
- 🧰 HTTP Client Compatibilities
- Customize your HTTP Client
- ⚙️ Contributing
📖 Documentation
To learn more about Meilisearch PHP, refer to the in-depth Meilisearch PHP Documentation. To learn more about Meilisearch in general, refer to our documentation or our API reference.
⚡ Supercharge your Meilisearch experience
Say goodbye to server deployment and manual updates with Meilisearch Cloud. Get started with a 14-day free trial! No credit card required.
🔧 Installation
To get started, simply require the project using Composer.
You will also need to install packages that "provide" psr/http-client-implementation
and psr/http-factory-implementation
.
A list with compatible HTTP clients and client adapters can be found at php-http.org.
If you don't know which HTTP client to use, we recommend using Guzzle 7:
Here is an example of installation with the symfony/http-client
:
💡 More HTTP client installations compatible with this package can be found in this section.
Run Meilisearch
There are many easy ways to download and run a Meilisearch instance.
For example, using the curl
command in your Terminal:
NB: you can also download Meilisearch from Homebrew or APT or even run it using Docker.
🚀 Getting started
Add documents
With the uid
, you can check the status (enqueued
, canceled
, processing
, succeeded
or failed
) of your documents addition using the task.
Basic Search
Output:
Custom Search
All the supported options are described in the search parameters section of the documentation.
💡 More about the search()
method in the Wiki.
JSON output:
Custom Search With Filters
If you want to enable filtering, you must add your attributes to the filterableAttributes
index setting.
You only need to perform this operation once.
Note that Meilisearch will rebuild your index whenever you update filterableAttributes
. Depending on the size of your dataset, this might take time. You can track the process using the tasks).
Then, you can perform the search:
🤖 Compatibility with Meilisearch
This package guarantees compatibility with version v1.x of Meilisearch, but some features may not be present. Please check the issues for more info.
💡 Learn more
The following sections in our main documentation website may interest you:
- Manipulate documents: see the API references or read more about documents.
- Search: see the API references or follow our guide on search parameters.
- Manage the indexes: see the API references or read more about indexes.
- Configure the index settings: see the API references or follow our guide on settings parameters.
🧰 HTTP Client Compatibilities
You could use any PSR-18 compatible client to use with this SDK. No additional configurations are required.
A list of compatible HTTP clients and client adapters can be found at php-http.org.
If you want to use this meilisearch-php
:
-
with
guzzlehttp/guzzle
(Guzzle 7), run: -
with
php-http/guzzle6-adapter
(Guzzle < 7), run: -
with
symfony/http-client
, run: -
with
php-http/curl-client
, run: - with
kriswallsmith/buzz
, run:
Customize your HTTP Client
For some reason, you might want to pass a custom configuration to your own HTTP client.
Make sure you have a PSR-18 compatible client when you initialize the Meilisearch client.
Following the example in the Getting started section, with the Guzzle HTTP client:
⚙️ Contributing
Any new contribution is more than welcome in this project!
If you want to know more about the development workflow or want to contribute, please visit our contributing guidelines for detailed instructions!
Meilisearch provides and maintains many SDKs and Integration tools like this one. We want to provide everyone with an amazing search experience for any kind of project. If you want to contribute, make suggestions, or just know what's going on right now, visit us in the integration-guides repository.
All versions of meilisearch-php with dependencies
ext-json Version *
php-http/discovery Version ^1.7
psr/http-client Version ^1.0