Skip to content

Commit ca2791a

Browse files
committed
Add ext-json version constraint, update some docs
Closes #498
1 parent 2316d33 commit ca2791a

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ You'll notice that the installation command specified `--no-dev`. This prevents
8484

8585
PHP Version Requirement
8686
----
87-
Version 2.0 of this library requires at least PHP version 5.4.0 to function. If you are on an older version of PHP, it is recommended
88-
that you upgrade, as PHP 5.3 is official EOL. Elasticsearch-PHP v0.4.x and v1.x are compatible with PHP 5.3.9+, but will
89-
eventually stop being supported.
87+
VeVersion 5.0 of this library requires at least PHP version 5.6.6 to function. In addition, it requires the native JSON
88+
extension to be version 1.3.7 or higher.
9089

9190
| PHP Version | Elasticsearch-PHP Branch |
9291
| ----------- | ------------------------ |

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
],
1212
"require": {
1313
"php": "^5.6.6|^7.0",
14+
"ext-json": ">=1.3.7",
1415
"psr/log": "~1.0",
1516
"guzzlehttp/ringphp" : "~1.0"
1617
},

docs/installation.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
Elasticsearch-php only has a three requirements that you need to worry about:
44

5-
* PHP 5.4.0 or higher
5+
* PHP 5.6.6 or higher
66
* http://getcomposer.org[Composer]
77
* http://php.net/manual/en/book.curl.php[ext-curl]: the Libcurl extension for PHP (see note below)
8+
* Native JSON Extensions (`ext-json`) 1.3.7 or higher
89
910
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
1011

docs/php-version-requirement.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
== PHP Version Requirement
22

3-
Version 5.0 of Elasticsearch-PHP requires PHP version 5.6.6 or higher.
3+
Version 5.0 of Elasticsearch-PHP requires PHP version 5.6.6 or higher. In addition, it requires the native JSON
4+
extension to be version 1.3.7 or higher.

0 commit comments

Comments
 (0)