Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meadsteve/phlocal-dynamo
convenience wrapper for running local copies of dynamo db
https://github.com/meadsteve/phlocal-dynamo
Last synced: 5 days ago
JSON representation
convenience wrapper for running local copies of dynamo db
- Host: GitHub
- URL: https://github.com/meadsteve/phlocal-dynamo
- Owner: meadsteve
- Created: 2016-01-13T22:52:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-02T16:42:07.000Z (over 6 years ago)
- Last Synced: 2024-10-11T03:11:13.884Z (about 1 month ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PhlocalDynamo
[![Build Status](https://travis-ci.org/meadsteve/phlocal-dynamo.svg?branch=master)](https://travis-ci.org/meadsteve/phlocal-dynamo)
This package provides a wrapper for the DynamoDb.jar that is available from AWS for local deployment.
It is intended to speed up development and testing with dynamo db.The required dynamo library should be downloadable from here: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html
This package is a php port of a c# library from JUST EAT: https://github.com/justeat/LocalDynamoDb
## Getting Started
Java is required as Amazon provide the local DynamoDb as a jar file.
Run ```composer require mead-steve/phlocal-dynamo```
The DynamoDb.jar isn't included in this package to avoid licensing issues.
Add the contents of the zip/tar file from amazon in to ```vendor\MeadSteve\PhlocalDynamo\src\dynamo```Then in any test classes simply do the following
```php
$dynamo = new LocalDynamo(9091);
$dynamo->start();
```And to stop it
```php
$dynamo->stop();
```## Using PhlocalDynamo
Calling ``` $dynamo->getClient()``` will return a dynamo client instance pointing to the local instance of dynamo.