webpt / zend-couchbase-module
Provides an abstract factory to instantiate \CouchbaseBucket objects.
Installs: 29 941
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
- beberlei/assert: ^2.0
- zendframework/zend-modulemanager: ^2.0
- zendframework/zend-servicemanager: ^2.0
- zendframework/zend-stdlib: ^2.0
Requires (Dev)
- igorw/get-in: ^1.0
- jakub-onderka/php-parallel-lint: ^0.9
- johnkary/phpunit-speedtrap: ^1.1
- klever/tutor: v0.1.0-alpha
- phpunit/phpunit: ^5.7
- squizlabs/php_codesniffer: ^2.8
- zendframework/zend-mvc: ^2.0
Suggests
- ext-couchbase: ext-couchbase:>=2.2 is required by this module, but we cannot impose this breaking change yet.
- roave/security-advisories: This package ensures that your application doesn't have installed dependencies with known security vulnerabilities.
This package is not auto-updated.
Last update: 2024-10-27 03:00:02 UTC
README
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.