Releases: LaravelFreelancerNL/arangodb-php-client
2.3.0
2.2.0
Added createEdgeCollection method on the schema manager.
2.1.0
Updated jsonmachine dependency to 1.0
2.0.1
Static analysis fix for return type of prepare method.
2.0.0
Response objects instead of associative arrays
The biggest change is the decoding of responses. JSON objects are now decoded to POPO's (Plain Old Php Objects).
This will influence how you use the response. Together with the improvements in php 8 this makes the result data much
nicer to work with compared to associative arrays.
This client is just a conduit, so it doesn't make any presumptions on the returned data itself, hence the the objects
are of the stdClass type.
PHP 8
PHP 8.0 is now the minimum supported version. You will need to run your app with this version
and ensure that other packages support it.
If you need to use PHP 7.4 you can use the maintenance branch 1.x
Schema function result data
Some schema functions just returned a boolean to indicate success or failure. These now match
the returned result by ArangoDB.
1.1.0
Added support for named Graph management.
1.0.0
ArangoDB PHP client.
Connect to ArangoDB and perform schema actions or execute queries. ee the docs for a full list of currently supported actions.
Added HTTP/2 support and several schema and statement methods
Added HTTP/2 support.
Set 'version' config to 2 to enable it.
truncateCollection
You can now call truncateCollection on the schema handler.
$arangoClient->schema()->truncateCollection('users');
getCollectionDocumentCount
Returns the number of documents in a collection.
$arangoClient->schema()->getCollectionDocumentCount('users');
getWritesExecuted
You can now retrieve the number of affected documents after an executed insert/update/delete statement.
$statement->getWritesExecuted();
Alpha pre-release
Low-level PHP client for ArangoDB.
Supports the following features of ArangoDB's HTTP REST API.
- Schema functions for databases, database users, collections, indexes and views.
- AQL cursor statements
- Transactions.