1. Go to this page and download the library: Download amphibee/meiliscout 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/ */
amphibee / meiliscout example snippets
$query = new WP_Query([
'post_type' => 'project',
'tax_query' => [['taxonomy' => 'project_type', 'terms' => [12]]],
'meta_query' => [['key' => '_price', 'value' => 5000, 'compare' => '<=', 'type' => 'NUMERIC']],
'use_meilisearch' => true,
]);
$query->meiliscout; // served or not, why, the search sent