PHP code example of manticoresoftware / manticoresearch-auto-replication

1. Go to this page and download the library: Download manticoresoftware/manticoresearch-auto-replication 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/ */

    

manticoresoftware / manticoresearch-auto-replication example snippets





$labels = [
    'app.kubernetes.io/component' => 'worker',
    'app.kubernetes.io/instance' => 'helm',
];

$api = new ApiClient();
$api->setApiUrl('http://localhost:8080');
$api->setNamespace('helm');
$api->setMode(ApiClient::DEV_MODE);