https://github.com/xp-forge/meilisearch
MeiliSearch client
https://github.com/xp-forge/meilisearch
meilisearch php7 php8 xp-framework
Last synced: 12 months ago
JSON representation
MeiliSearch client
- Host: GitHub
- URL: https://github.com/xp-forge/meilisearch
- Owner: xp-forge
- Created: 2021-06-08T20:40:34.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-24T12:30:22.000Z (about 2 years ago)
- Last Synced: 2025-05-15T10:08:55.665Z (about 1 year ago)
- Topics: meilisearch, php7, php8, xp-framework
- Language: PHP
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
Awesome Lists containing this project
README
MeiliSearch
===========
[](https://github.com/xp-forge/meilisearch/actions)
[](https://github.com/xp-framework/core)
[](https://github.com/xp-framework/core/blob/master/LICENCE.md)
[](http://php.net/)
[](http://php.net/)
[](https://packagist.org/packages/xp-forge/meilisearch)
Client library for [MeiliSearch](https://www.meilisearch.com/).
Example
-------
```php
use com\meilisearch\MeiliSearch;
use util\cmd\Console;
$search= new MeiliSearch('http://localhost:7700');
// Search the "content" index for the given term
$result= $search->locate('content')->search($term);
// Output results
Console::writeLine('%d hits for "%s" in %.3f seconds', $result->hits(), $term, $result->elapsedTime());
foreach ($result as $document) {
Console::writeLine('- ', $document);
}
```