PHP code example of adimeo-data-suite / php-client

1. Go to this page and download the library: Download adimeo-data-suite/php-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/ */

    

adimeo-data-suite / php-client example snippets


$searchClient = new AdsClient('http://ads.base.url', 'index.mapping', 'analyzer');

$result = $searchClient->search();

$searchClient->addFacet(new Facet('field.raw'));