You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elasticsearch-php only has a three requirements that you need to worry about:
4
+
Elasticsearch-php only has three requirements that you need to pay attention:
5
5
6
6
* PHP 7.0.0 or higher
7
7
* http://getcomposer.org[Composer]
8
-
* http://php.net/manual/en/book.curl.php[ext-curl]: the Libcurl extension for PHP (see note below)
8
+
* http://php.net/manual/en/book.curl.php[ext-curl]: the Libcurl extension for
9
+
PHP (see note below)
9
10
* Native JSON Extensions (`ext-json`) 1.3.7 or higher
10
11
11
-
The rest of the dependencies will automatically be downloaded and installed by Composer. Composer is a package and dependency manager for PHP. Installing elasticsearch-php with Composer is very easy
12
+
The rest of the dependencies are automatically downloaded and installed by
13
+
Composer. Composer is a package and dependency manager for PHP and makes it easy
14
+
to install Elasticsearch-php.
12
15
13
16
[NOTE]
14
17
.Libcurl can be replaced
15
18
====
16
-
The default HTTP handlers that ship with Elasticsearch-php require the PHP libcurl extension, but it is not technically
17
-
required for the client to operate. If you have a host that does not have libcurl installed, you can use an
18
-
alternate HTTP handler based on PHP streams. Performance _will_ suffer, as the libcurl extension is much faster
19
+
The default HTTP handlers that ship with Elasticsearch-php require the PHP
20
+
libcurl extension, but it is not technically required for the client to operate.
21
+
If you have a host that does not have libcurl installed, you can use an
22
+
alternate HTTP handler based on PHP streams. Performance _will_ suffer, as the
23
+
libcurl extension is much faster.
19
24
====
20
25
21
26
=== Version Matrix
22
27
23
-
You need to match your version of Elasticsearch to the appropriate version of this library.
28
+
You need to match your version of {es} to the appropriate version of this
29
+
library.
24
30
25
-
The master branch will always track Elasticsearch master, but it is not recommended to use `dev-master` in your production code.
31
+
The master branch will always track {es} master, but it is not recommended to
32
+
use `dev-master` in your production code.
26
33
27
34
[width="40%",options="header",frame="topbot"]
28
35
|============================
@@ -37,7 +44,10 @@ The master branch will always track Elasticsearch master, but it is not recommen
37
44
38
45
=== Composer Installation
39
46
40
-
* Include elasticsearch-php in your `composer.json` file. If you are starting a new project, simply paste the following JSON snippet into a new file called `composer.json`. If you have an existing project, include this requirement under the rest of requirements already present:
47
+
* Include elasticsearch-php in your `composer.json` file. If you are starting a
48
+
new project, paste the following JSON snippet into a new file called
49
+
`composer.json`. If you have an existing project, include this requirement
50
+
under the rest of requirements already present:
41
51
+
42
52
[source,json]
43
53
--------------------------
@@ -48,17 +58,23 @@ The master branch will always track Elasticsearch master, but it is not recommen
48
58
}
49
59
--------------------------
50
60
51
-
* Install the client with composer. The first command download the `composer.phar` PHP package, and the second command invokes the installation. Composer will automatically download any required dependencies, store them in a /vendor/ directory and build an autoloader.:
61
+
* Install the client with Composer. The first command downloads the
62
+
`composer.phar` PHP package, the second command invokes the installation.
63
+
Composer automatically downloads any dependencies, store them in a /vendor/
64
+
directory and build an autoloader:
52
65
+
53
66
[source,shell]
54
67
--------------------------
55
68
curl -s http://getcomposer.org/installer | php
56
69
php composer.phar install --no-dev
57
70
--------------------------
58
71
+
59
-
More information about http://getcomposer.org/[Composer can be found at their website].
72
+
More information about
73
+
http://getcomposer.org/[Composer can be found at their website].
60
74
61
-
* Finally, include the generated autoloader in your main project. If your project is already based on Composer, the autoloader is likely already included somewhere and you don't need to add it again. Finally, instantiate a new client:
75
+
* Include the generated autoloader in your main project. If your project is
76
+
already based on Composer, the autoloader is likely already included somewhere
77
+
and you don't need to add it again. Finally, instantiate a new client:
0 commit comments