PHPackages                             thedomeffm/sapphire - 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. thedomeffm/sapphire

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

thedomeffm/sapphire
===================

A simple PHP DynamoDB ODM

0.0.1(5y ago)011MITPHPPHP &gt;=8.0

Since Jun 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/thedomeffm/sapphire)[ Packagist](https://packagist.org/packages/thedomeffm/sapphire)[ Docs](https://github.com/thedomeffm/sapphire)[ RSS](/packages/thedomeffm-sapphire/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)DependenciesVersions (5)Used By (0)

SAPPHIRE
========

[](#sapphire)

`composer require thedomeffm/sapphire`

### Info

[](#info)

> This library is WIP! Not ready for production!

---

Sapphire is simple PHP DynamoDB ODM. Made to be fast and tiny. Ideal for [serverless PHP functions](https://bref.sh).

The ODM does just the mapping part and does not handle queries at all! You have to use [async-aws](https://async-aws.com/clients/dynamodb.html)or the [aws-sdk](https://github.com/aws/aws-sdk-php) in order to work with the ODM.

The mapping just work with typed properties and just uses php attributes! There is no support for annotation!

### Requirements

[](#requirements)

- php: &gt;=8.0
- typed properties!
- composer: &gt;=2.0

> The package has probably some problems if used with an old composer 1 version

What does the library do?
-------------------------

[](#what-does-the-library-do)

You add Attributes to your PHP Classes and with the help of the DynamoManager you can convert to PHP Object to an Array that the AWS-SDK or async-aws can work with and vice versa. The library does not care about generating missing tables. You can use CloudFormation or Terraform with this.

Example
-------

[](#example)

```
