Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Latest commit

 

History

History
39 lines (27 loc) · 1.05 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.05 KB

DynamoDB object mapper. Like Doctrine or Eloquent, but for DynamoDB.

Build Status Latest Version Total Downloads

This library is currently in an experimental status and is not meant to be used in production.

Installation

composer require bref/dynamap

Usage

$dynamap = Dynamap::fromOptions([
    'region' => 'us-east-1',
], $mapping);

$dynamap->save($myObject);
$myObject = $dynamap->get('table', 'key');
$objects = $dynamap->getAll('table');

Supported field types:

  • string
  • integer
  • bool
  • DateTimeImmutable (stored as string)

Contributing

To run tests locally:

  • start DynamoDB local with docker-compose up or docker-compose start
  • run phpunit