1// docs/index_.asciidoc:244
2
3[source, php]
4----
5$params = [
6 'index' => 'twitter',
7 'body' => [
8 'user' => 'kimchy',
9 'post_date' => '2009-11-15T14:12:12',
10 'message' => 'trying out Elasticsearch',
11 ],
12];
13$response = $client->index($params);
14----
15