ganesha-plugin / couchbase-adapter
Couchbase adapter for ackintosh/ganesha
Installs: 7 693
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
- ext-couchbase: ^2.4
- ackintosh/ganesha: ^0.2.0
Requires (Dev)
- phpmd/phpmd: ^2.6
- phpunit/phpunit: ^4.8|^5.7|^6.5|^7.1
- sebastian/phpcpd: ^2.0|^3.0|^4.0
- squizlabs/php_codesniffer: ^2.9|^3.0
This package is auto-updated.
Last update: 2024-11-13 02:57:34 UTC
README
This package provides Couchbase adapter for ackintosh/ganesha.
Installation
$ composer require ganesha-plugin/couchbase-adapter
How to use
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), ]);
Development
to run unit test:
$ make start # start couchbase server in docker container
$ TEST_COUCHBASE_HOST=localhost composer test # run unit test
License
MIT License