PHP code example of sgrodzicki / algoliasearch-api-client
1. Go to this page and download the library: Download sgrodzicki/algoliasearch-api-client 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/ */
sgrodzicki / algoliasearch-api-client example snippets
use Algolia\SearchApiClient\Client\AlgoliaSearchClient;
$client = AlgoliaSearchClient::factory(array(
'application_id' => 'your_application_id',
'api_key' => 'your_api_key',
));
$indexes = $client->listIndexes(); // returns an array of your indexes
bash
$ php composer.phar update sgrodzicki/algoliasearch-api-client