PHPackages                             pfazzi/dynamo-db-session - 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. pfazzi/dynamo-db-session

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

pfazzi/dynamo-db-session
========================

A DynamoDb adapter for Symfony session storage

v0.1(5y ago)5166MITPHPPHP ^8

Since Jan 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pfazzi/dynamo-db-session)[ Packagist](https://packagist.org/packages/pfazzi/dynamo-db-session)[ RSS](/packages/pfazzi-dynamo-db-session/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (6)Versions (3)Used By (0)

DynamoDB Session
================

[](#dynamodb-session)

DynamoDB Session is a session handler that stores session data in DynamoDB.

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

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install DynamoDB Session.

```
composer require pfazzi/dynamo-db-session
```

Usage
-----

[](#usage)

Define a proper service in `config/services.yaml`

```
services:
    pfazzi.dynamo_db_session:
      class: Pfazzi\Session\DynamoDb\DynamoDbSessionHandler
      arguments:
        $tableName: 'dashboard-session-dev' # TODO: change me!
```

A DynamoDb table needs to exist in the configured region with the given `$tableName` option. The primary key of the table must be a String with key "id".

Tell Symfony to use it as session handler in `config/packages/framework.yaml`:

```
framework:
    session:
        handler_id: pfazzi.dynamo_db_session
```

### Create session table programmatically

[](#create-session-table-programmatically)

You can programmatically create the session table using `Pfazzi\Session\DynamoDb\SessionTable` class, as in the following example:

```
$tableName = 'some-session-table-name';

$sdk = new Aws\Sdk([
    'region'   => 'eu-central-1',
    'version'  => 'latest',
]);

$dynamodb = $sdk->createDynamoDb();

$sessionTable = new Pfazzi\Session\DynamoDb\SessionTable($dynamodb, $tableName);
$sessionTable->create();
```

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1950d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97334b538a672a1433ff992a88e75f143f6bdcfb4f0a19be4dafd7ae4d748721?d=identicon)[pfazzi](/maintainers/pfazzi)

---

Top Contributors

[![pfazzi](https://avatars.githubusercontent.com/u/4489261?v=4)](https://github.com/pfazzi "pfazzi (15 commits)")

---

Tags

dynamodbphpsessionsymfony

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pfazzi-dynamo-db-session/health.svg)

```
[![Health](https://phpackages.com/badges/pfazzi-dynamo-db-session/health.svg)](https://phpackages.com/packages/pfazzi-dynamo-db-session)
```

###  Alternatives

[prezent/doctrine-translatable-bundle

Integrate the doctrine-translatable extension in Symfony

14698.4k5](/packages/prezent-doctrine-translatable-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
