PHPackages                             harmonicdigital/dynamodb-odm - 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. [Database &amp; ORM](/categories/database)
4. /
5. harmonicdigital/dynamodb-odm

ActiveLibrary[Database &amp; ORM](/categories/database)

harmonicdigital/dynamodb-odm
============================

A simple ODM for interacting with DynamoDB

v1.1.0(4mo ago)140MITPHPPHP ^8.2CI passing

Since Jan 11Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/Harmonic-Digital-Ltd/dynamodb-odm)[ Packagist](https://packagist.org/packages/harmonicdigital/dynamodb-odm)[ RSS](/packages/harmonicdigital-dynamodb-odm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (10)Used By (0)

README
======

[](#readme)

Overview
--------

[](#overview)

This project provides an Object-Document Mapper (ODM) for DynamoDB, allowing you to map PHP objects to DynamoDB items and vice versa.

Features
--------

[](#features)

- Automatic table and key creation.
- Fetch item by class and key(s)
- Insert/update item by put method
- Delete an item
- Embedded object support
- Custom transformers to convert data to and from database formats
- Handling of strings to numeric and binary formats
- Native handling of sets (number, binary and string)

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

[](#installation)

To install the package, use Composer:

```
composer require harmonicdigital/dynamodb-odm
```

Usage
-----

[](#usage)

### Example Model

[](#example-model)

Here is an example of a model class `MyItem` that can be used with the ODM:

```
