This package provides Couchbase adapter for ackintosh/ganesha.
$ composer require ganesha-plugin/couchbase-adapter
With ackintosh/ganesha:
// create bucket instance
$cluster = new \Couchbase\Cluster('...');
$authenticator = new \Couchbase\PasswordAuthenticator();
$authenticator->username('...')->password('...');
$cluster->authenticate($authenticator);
$bucket = $cluster->openBucket('...');
$ganesha = \Ackintosh\Ganesha\Builder::build([
..., // other options
'adapter' => new \GaneshaPlugin\Adapter\Couchbase($bucket),
]);
to run unit test:
$ make start # start couchbase server in docker container
$ TEST_COUCHBASE_HOST=localhost composer test # run unit test
MIT License