PHP code example of cmsig / seal-algolia-adapter
1. Go to this page and download the library: Download cmsig/seal-algolia-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/ */
cmsig / seal-algolia-adapter example snippets
use Algolia\AlgoliaSearch\SearchClient;
use CmsIg\Seal\Adapter\Algolia\AlgoliaAdapter;
use CmsIg\Seal\Engine;
$client = Algolia\AlgoliaSearch\SearchClient::create(
'YourApplicationID',
'YourAdminAPIKey',
);
$engine = new Engine(
new AlgoliaAdapter($client),
$schema,
);