webpt/zend-couchbase-module

Provides an abstract factory to instantiate \CouchbaseBucket objects.

0.1.2 2017-04-07 19:11 UTC

This package is not auto-updated.

Last update: 2024-10-27 03:00:02 UTC


README

Scrutinizer Code Quality Code Coverage Build Status

webpt/zend-couchbase-module

Provides an abstract factory for instantiating named \CouchbaseBucket objects.

Installation

composer require webpt/zend-couchbase-module

Usage

The following snippet will produce a \CouchbaseBucket object for the localhost cluster default bucket:

$bucket = $serviceLocator->get('couchbase.localhost.default');

See the module configuration for a functional sample configuration which can be copied into differently named and configured clusters and buckets. Cluster configuration can be shared by buckets, but only the instantiated buckets will be shared in the service manager.

Contributing

composer update && composer test:units

This library attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.