lelivrescolaire/dynamodb-bundle

Communicate with a DynamoDB instance from inside your symfony 2 application.

dev-master 2017-01-29 16:00 UTC

This package is not auto-updated.

Last update: 2020-01-07 16:38:24 UTC


README

LeLivreScolaire

DynamoDB Bundle Build Status Coverage Status

Use AWS DynamoDB NoSQL database from inside your Symfony 2 application.

Installation

$ composer require "lelivrescolaire/dynamodb-bundle:dev-master"

AppKernel:

public function registerBundles()
{
    $bundles = array(
        new LLS\Bundle\AWSBundle\LLSAWSBundle(),
        new LLS\Bundle\DynamoDBBundle\LLSDynamoDBBundle(),
    );
}

Configuration reference

llsaws:
    identities:
        my_identity:                        # Arbitrary Identity service name
            type: user                      # Identity type name (factory alias)
            fields:                         # Identity fields
                key: '<user AWS key>'
                secret: '<user AWS secret>'
    services:
        my_dynamodb:
            type:     dynamodb
            identity: my_identity

# Handle sessions with DynamoDB

services:
    session.handler.dynamodb:
        class:     LLS\Bundle\DynamoDBBundle\Session\Storage\Handler\DynamoDBSessionHandler
        arguments:
            - @llsaws.services.my_dynamodb              # Auto generated service

Read more documentation here

Contribution

Feel free to send us Pull Requests and Issues with your fixs and features.

Run test

Unit tests

$ ./bin/atoum

Coding standards

$ ./bin/coke