Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

A PHP extension for ArangoDB with fuerte and velocypack 🚀

Notifications You must be signed in to change notification settings

sandrokeil/arangodb-php-driver

Repository files navigation

ArangoDB PHP Driver

Native PHP extension for ArangoDB.

Development

First install dependencies with

$ ./get_fuerte

and PHP dependencies with

$ docker run --rm -it --volume $(pwd):/app prooph/composer:7.1 update

This extension is build with PHP-CPP. The build is simple with Docker Compose.

$ docker-compose build arangodb-builder
$ docker-compose up -d --no-recreate arangodb

Test

$ docker-compose run --rm arangodb-builder
$ docker-compose build php
$ docker-compose run --rm php vendor/bin/phpunit

Cleanup

$ docker-compose down -v

Debugging

Check which symbols are in build/libarangodb.so. See nm docs.

$ nm -g build/libarangodb.so | grep ArangoDb
$ ldd build/libarangodb.so

UI

Open management UI. You should see one collection named testobi.