PHPackages                             riverline/dynamodb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. riverline/dynamodb

ActiveLibrary

riverline/dynamodb
==================

Amazon WebService DynamoDB PHP object wrapper

2.0.4(12y ago)3339.2k15[1 issues](https://github.com/rcambien/riverline-dynamodb/issues)MITJavaScriptPHP &gt;=5.3.5

Since May 15Pushed 12y ago7 watchersCompare

[ Source](https://github.com/rcambien/riverline-dynamodb)[ Packagist](https://packagist.org/packages/riverline/dynamodb)[ Docs](https://github.com/rcambien/riverline-dynamodb)[ RSS](/packages/riverline-dynamodb/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (18)Used By (0)

README
======

[](#readme)

[![Build Status](https://camo.githubusercontent.com/3e20b06cb99cc0dbe6eacb6ccb15fcefab1d83aa26736b686a01aae9d709dc24/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7263616d6269656e2f72697665726c696e652d64796e616d6f64622e706e67)](http://travis-ci.org/rcambien/riverline-dynamodb)

What is Riverline\\DynamoDB
---------------------------

[](#what-is-riverlinedynamodb)

`Riverline\DynamoDB` is a PHP 5.3 object wrapper for the Amazon PHP DynamoDB SDK. It speed up the manipulation of items and attributes

Requirements
------------

[](#requirements)

- PHP 5.3.5
- AWS PHP SDK 2.1.2

Installation
------------

[](#installation)

`Riverline\DynamoDB` is compatible with composer and any prs-0 autoloader

Migration from 1.\* to 2.\*
---------------------------

[](#migration-from-1-to-2)

Since version 2.0.0, the lib use the new AWS PHP SDK 2.\* To migrate to the new version, you need to fix any call to the old AmazonDynamoDB class by using the new Enum classes. For example, \\AmazonDynamoDB::TYPE\_NUMBER become \\Aws\\DynamoDb\\Enum\\Type::NUMBER.

The Connection constructor also change.

Test
----

[](#test)

Create DynamoDB tables :

- Test(id)
- TestRange(id, \[range\])

Define phpunit env vars in ``phpunit.xml.dist`

```
$ php composer.phar install
$ phpunit

```

Getting started
---------------

[](#getting-started)

### Create a new connection

[](#create-a-new-connection)

```

```

### Table operations

[](#table-operations)

```
