PHP code example of raylin666 / elasticsearch

1. Go to this page and download the library: Download raylin666/elasticsearch 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/ */

    

raylin666 / elasticsearch example snippets




nt = new \Raylin666\Elasticsearch\Client();
$client = $client->create();
var_dump($client->build()->indices()->get(['index' => '_all']));