Questions tagged [arangodb-php]

ArangoDB-PHP - A PHP client for ArangoDB

ArangoDB-PHP - A PHP client for ArangoDB allowing developer to communicate with ArangoDB from PHP applications. The library itself is written in PHP and has no further dependencies but just plain PHP 5.3 (or higher).

The client provides document and collection classes that you can leverage in order 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. 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.

25 questions
1
vote
2 answers

ArangoDB-PHP Collection exists check

I want to make a check if a Collection already exist with ArangoDB-PHP. $collectionHandler = new CollectionHandler($arango); $userCollection = new Collection(); $userCollection->setName('_profiles'); Because I get the following error: Server error:…
Jeroen Steen
  • 531
  • 8
  • 22
0
votes
0 answers

Problem ArangoDB connection with PHP vendor

I would like to establish a database connection to ArangoDB with PHP. Vendor is installed, I have created an isolated script to just try the connection, but I always receive the following error message: Uncaught Error: Class "ArangoDB\Connection"…
0
votes
1 answer

arangodb document key length best practice

I am wokring on arangodb and was wondering weather doucment key size will affect database size. I am not sure how arango db stores data but does key length of document affects db size ? { 'username': 'testuser', 'password':…
0
votes
1 answer

Sorting on _key and filter

I have a requiremnt in which I am getting stucked. Below are few points that needs to be done. 1: I want to sort on _key field which is system generated (configured as auto increment) and filter them accordingly. Eg: SORT users._key DESC FILTER…
Abhay Rawat
  • 43
  • 1
  • 5
0
votes
0 answers

How to execute arangodb transaction in php after redis transaction is comfirmed?

I need to put some data in arangodb and redis at the same time but I need some help on how to do it. Something like this: global $connection; $time=date('Y-m-d H:i:s'); $document = array( "replyTo" => $replyTo, …
0
votes
2 answers

How can I list the users with the most similar entries with ArangoDB

I started new project today. I have users table, tags table and user_tags edge for graph results. I attached to users some tags on graph. How can I list the users with the most similar entries with ArangoDB. For example: user id: 112 has 3 tags…
0
votes
1 answer

How to call ArangoDB Foxx applications from arangodb-php

With ArangoDB-PHP I can easily run AQL querys, but is it possible to use (means "execute") Foxx applications (i.e. when I install foxx/util-sessions-local from https://github.com/arangodb-foxx/util-sessions-local) - how to use the…
hwde
  • 353
  • 2
  • 6
0
votes
2 answers

Not able to access to ArangoDB web interface

I've installed ArangoDB on an Ubuntu server. I can connect with arangosh but not able to connect from the web interface. Tried so many things like in conf files : tcp://0.0.0.0:8529 tcp://my.server.ipaddress:8529 tcp://myservern.ndd:8529 Always…
0
votes
2 answers

How to Compare Two Similar Graphs in ArangoDB that the result would yield the difference in Paths and Vertices?

I have two Graphs and I wanted to compare the difference between them. As a result from the AQL query I want only the difference in path and vertices between them. Is there any query in ArangoDb for it. Please let me know if its possible. Thanks in…
Haseb Ansari
  • 587
  • 1
  • 7
  • 23
-1
votes
1 answer

Check total number of collections in arangodb in PHP

How can I check the total number of collections in arangodb in PHP? This is what I tried: $documents = $collectionHandler->all($collectionId); var_dump($documents);
T Sooraj
  • 556
  • 1
  • 5
  • 18
1
2