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
Copy file name to clipboardExpand all lines: docs/Drivers/PHP/GettingStarted/README.md
+80-6Lines changed: 80 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,10 @@ The autoloader will care about loading additionally required classes on the fly.
13
13
14
14
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).
15
15
16
-
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.
16
+
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](../../../HTTP/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.
17
17
18
18
## Requirements
19
19
20
-
* 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)
21
-
22
20
* PHP version 5.6 or higher (Travis-tested with PHP 5.6, 7.0, 7.1 and hhvm)
23
21
24
22
Note on PHP version support:
@@ -27,6 +25,82 @@ This driver will cease to support old PHP versions as soon as they have reached
27
25
28
26
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).
29
27
28
+
### Important version information on ArangoDB-PHP
29
+
30
+
Since version 1.0 of this client, it will closely follow the ArangoDB versioning.
31
+
That means that:
32
+
33
+
- ArangoDB-PHP 3.1.x is on par with the functionality of ArangoDB 3.0.y
34
+
- ArangoDB-PHP 3.2.x is on par with the functionality of ArangoDB 3.1.y
35
+
etc...
36
+
37
+
Notice: The third level number of the version is not associated to ArangoDB's third level number, as it states minor updates, bugfixes and patches to the client itself.
38
+
39
+
40
+
<br>
41
+
<br>
42
+
43
+
<aname="interoperability_matrix"></a>
44
+
45
+
### ArangoDB-PHP Client to ArangoDB Server interoperability matrix ##
<td>1.0.0</td><td>1.0.0 through 1.0.4</td><td></td>
75
+
</tr>
76
+
<tr>
77
+
<td>1.0.1</td><td>1.0.0 through 1.0.4</td><td></td>
78
+
</tr>
79
+
<tr>
80
+
<td>1.1.0</td><td>1.1.0 through 1.1.3</td><td></td>
81
+
</tr>
82
+
<tr>
83
+
<td>1.2.0</td><td>1.2.0 through 1.2.1</td><td></td>
84
+
</tr>
85
+
<tr>
86
+
<td>1.2.1</td><td>1.2.2 through 1.2.3</td><td>This client version provides support for ArangoDB's autoincrement functionality. (ArangoDB Version 1.2.2+)</td>
87
+
</tr>
88
+
<tr>
89
+
<td>1.3.0</td><td>1.3.0 through 1.3.3</td><td>Provides support for Transactions, Auto-Increment, AQL User Functions and the new statistics interface.</td>
90
+
</tr>
91
+
<tr>
92
+
<td>1.3.1</td><td>1.3.0 through 1.3.3</td><td>Added Tracer & simple/all API equvalent. Some Performance fixes. improved docs</td>
93
+
</tr>
94
+
<tr>
95
+
<td>1.4.0</td><td>1.4.0 through 1.4.x</td><td>Multi-Database, Traversal API + others</td>
96
+
</tr>
97
+
<tr>
98
+
<td>2.x.x</td><td>2.0.0 through 2.x.x</td><td></td>
99
+
</tr>
100
+
</table>
101
+
102
+
103
+
30
104
### Installing the PHP client
31
105
32
106
To get started you need PHP 5.6 or higher plus an ArangoDB server running on any host that you can access.
@@ -36,12 +110,12 @@ There are two alternative ways to get the ArangoDB PHP client:
36
110
* Using Composer
37
111
* Cloning the git repository
38
112
39
-
### Alternative 1: Using Composer
113
+
####Alternative 1: Using Composer
40
114
41
115
```
42
116
composer require triagens/arangodb
43
117
```
44
-
### Alternative 2: Cloning the git repository
118
+
####Alternative 2: Cloning the git repository
45
119
46
120
When preferring this alternative, you need to have a git client installed. To clone the ArangoDB PHP client repository from github, execute the following command in your project directory:
The ArangoDB PHP client's autoloader will only care about its own class files and will not handle any other files. That means it is fully nestable with other autoloaders.
60
134
61
-
### Alternative 3: Invoking the autoloader directly
135
+
####Alternative 3: Invoking the autoloader directly
62
136
63
137
If you do not wish to include autoload.php to load and setup the autoloader, you can invoke the autoloader directly:
0 commit comments