PHP code example of schranz-search / seal-meilisearch-adapter
1. Go to this page and download the library: Download schranz-search/seal-meilisearch-adapter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
schranz-search / seal-meilisearch-adapter example snippets
use Meilisearch\Client;
use Schranz\Search\SEAL\Adapter\Meilisearch\MeilisearchAdapter;
use Schranz\Search\SEAL\Engine;
$client = new Client('http://127.0.0.1:7700');
$engine = new Engine(
new MeilisearchAdapter($client),
$schema,
);