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