Giter Site home page Giter Site logo

couchbaseaccesslayerbundle's Introduction

Minimum PHP Version Minimum Symfony Version

This Symfony bundle is a wrapper around bowlofsoup/couchbase-access-layer. Checkout the README.md of that repository on how to use it.

Installation

Require the bundle via composer in your Symfony ^3.4 project.

composer require bowlofsoup/couchbase-access-layer-bundle

Add the bundle to your AppKernel.php.

$bundles = [
    ...
    new \BowlOfSoup\CouchbaseAccessLayerBundle\CouchbaseAccessLayerBundle()
    ...
];

Add the correct parameters in app/config/config.yml.

couchbase_access_layer:
    host:
    user:
    password:
    bucket_default:

When using parameters.yml

If you're working with an additional app/config/parameters.yml, put in these parameters.

couchbase_host:
couchbase_user:
couchbase_password:
couchbase_default_bucket:

Then use/change the following parameters app/config/config.yml

couchbase_access_layer:
    host: %couchbase_host%
    user: %couchbase_user%
    password: %couchbase_password%
    bucket_default: %couchbase_default_bucket%

Usage of this bundle

You can use BowlOfSoup\CouchbaseAccessLayer\Repository\BucketRepository as dependency for your service. It will take the 'default' bucket you configured for you to use the query builder on.

See the README.md of the bowlofsoup/couchbase-access-layer repository on how to use this 'query builder'.

You can also make your own definition of a BucketRepository to use a different bucket than the default you configured.

my_own_bucket_repository:
    class: BowlOfSoup\CouchbaseAccessLayer\Repository\BucketRepository
    arguments:
        - 'your bucket'
        - '@BowlOfSoup\CouchbaseAccessLayer\Factory\ClusterFactory'

This goes in your own services.yml definition.

couchbaseaccesslayerbundle's People

Contributors

bowlofsoup avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.