Skip to content

Commit 45616e4

Browse files
committed
Removed PHP 5.5 support
1 parent b1d2204 commit 45616e4

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: php
22

33
matrix:
44
include:
5-
- php: '5.5'
65
- php: '5.6'
76
- php: '7.0'
87
- php: '7.1'

CHANGELOG

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
Release notes for the ArangoDB-PHP driver 3.2.0 (currently in development)
22
==========================================================================
33

4-
The namespace `\triagens\ArangoDb` was replaced with `\ArangoDBClient`.
4+
- The namespace `\triagens\ArangoDb` was replaced with `\ArangoDBClient`.
55
For each class in the old namespace there is now a class alias that points
66
from the new namespace to the old namespace, so existing applications can
77
still use the class names from the `\triagens\ArangoDb` namespace
88

9+
- Support for PHP 5.5 has been removed.
10+
11+
912
Release notes for the ArangoDB-PHP driver 3.1.0
1013
===============================================
1114

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ There is an example for this kind of statements in the file examples/select.php.
5252
To use the PHP client, you must include the file autoloader.php from the main directory.
5353
The autoloader will care about loading additionally required classes on the fly. The autoloader can be nested with other autoloaders.
5454

55-
The ArangoDB PHP client is an API that allows you to send and retrieve documents from ArangoDB from out of your PHP application. The client library itself is written in PHP and has no further dependencies but just plain PHP 5.5 (or higher).
55+
The ArangoDB PHP client is an API that allows you to send and retrieve documents from ArangoDB from out of your PHP application. The client library itself is written in PHP and has no further dependencies but just plain PHP 5.6 (or higher).
5656

5757
The client library provides document and collection classes you can use to work with documents and collections in an OO fashion. When exchanging document data with the server, the library internally will use the [HTTP REST interface of ArangoDB](https://docs.arangodb.com/HttpApi/index.html). The library user does not have to care about this fact as all the details of the REST interface are abstracted by the client library.
5858

@@ -65,7 +65,13 @@ The client library provides document and collection classes you can use to work
6565

6666
* ArangoDB database server version 3.0 or higher. Detailed info [here](https://github.com/arangodb/arangodb-php/wiki/Important-versioning-information-on-ArangoDB-PHP#arangodb-php-client-to-arangodb-server-interoperability-matrix)
6767

68-
* PHP version 5.5 or higher (Travis-tested with PHP 5.5, 5.6, 7.0, 7.1 and hhvm)
68+
* PHP version 5.6 or higher (Travis-tested with PHP 5.6, 7.0, 7.1 and hhvm)
69+
70+
Note on PHP version support:
71+
72+
This driver will cease to support old PHP versions as soon as they have reached end-of-life status. Support will be removed with the next minor or patch version of the driver to be released.
73+
74+
In general, it is recommended to always use the latest PHP versions (currently those in the PHP 7 line) in order to take advantage of all the improvements (especially in performance).
6975

7076
<br>
7177

@@ -74,7 +80,7 @@ The client library provides document and collection classes you can use to work
7480
<a name="installing"></a>
7581
## Installing the PHP client
7682

77-
To get started you need PHP 5.5 or higher plus an ArangoDB server running on any host that you can access.
83+
To get started you need PHP 5.6 or higher plus an ArangoDB server running on any host that you can access.
7884

7985
There are two alternative ways to get the ArangoDB PHP client:
8086

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
],
2424
"require": {
25-
"php": ">=5.5.0"
25+
"php": ">=5.6.0"
2626
},
2727
"autoload": {
2828
"psr-0": {

lib/ArangoDBClient/Autoloader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ private static function checkEnvironment()
8989
{
9090
list($major, $minor) = explode('.', phpversion());
9191

92-
if ((int) $major < 5 || ((int) $major === 5 && (int) $minor < 5)) {
93-
throw new ClientException('Incompatible PHP environment. Expecting PHP 5.5 or higher');
92+
if ((int) $major < 5 || ((int) $major === 5 && (int) $minor < 6)) {
93+
throw new ClientException('Incompatible PHP environment. Expecting PHP 5.6 or higher');
9494
}
9595
}
9696
}

0 commit comments

Comments
 (0)