PHPackages                             gwk/dynamo-session-bundle - 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. gwk/dynamo-session-bundle

ActiveLibrary

gwk/dynamo-session-bundle
=========================

DynamoDB Session Handler Bundle for Symfony 2

1.0(10y ago)14210.9k11[1 issues](https://github.com/gwkunze/dynamo-session-bundle/issues)[1 PRs](https://github.com/gwkunze/dynamo-session-bundle/pulls)MITPHPPHP &gt;=5.3.3

Since Feb 21Pushed 8y ago2 watchersCompare

[ Source](https://github.com/gwkunze/dynamo-session-bundle)[ Packagist](https://packagist.org/packages/gwk/dynamo-session-bundle)[ RSS](/packages/gwk-dynamo-session-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

DynamoDb Session Handler bundle
===============================

[](#dynamodb-session-handler-bundle)

This Symfony 2.x bundle allows you to use the DynamoDb Web Service to store your sessions

**Starting from version 1.0 this bundle requires the AWS PHP SDK version 3.0+, if you're using the 2.x SDK use the latest 0.x version**

Installation
============

[](#installation)

Simply add the following to your composer.json file

```
{
    "require": {
        "gwk/dynamo-session-bundle": "1.*"
    }
}
```

And use composer to install the bundle:

```
composer.phar update gwk/dynamo-session-bundle

```

Now add the bundle to your app/AppKernel.php:

```
$bundles[] = new GWK\DynamoSessionBundle\GWKDynamoSessionBundle();
```

Configuration
=============

[](#configuration)

Add the following configuration setting to your app/config/config.yml

```
framework:
    session:
        handler_id: dynamo_session_handler

gwk_dynamo_session:
    table: my_session_table # DynamoDb Table to store sessions in
    locking_strategy: pessimistic # See AWS PHP documentation for valid values
    # dynamo_client_id: my_dynamodb_service # If you already use DynamoDb and you have a AWS\DynamoDb\DynamoDbClient service, you can make the session handler use it
    automatic_gc: true # Whether to use PHP's internal automatic garbage collection. The AWS sdk doesn't recommend it but doesn't explain why
    gc_batch_size: 25 # Maximum number of sessions the garbage collector deletes when garbage collection is started (manually or automatic)
    session_lifetime: 3600 # Number of seconds after which idle sessions should be garbage collected
    read_capacity: 10 # Default read capacity
    write_capacity: 10 # Default write capacity
    aws:
        region: us-east-1 # AWS Region to use
        version: latest # AWS API version
        credentials:
            key: AKA123456789 # Your AWS key
            secret: abcdeffhij # Your AWS secret
```

If you use AWS IAM Roles and your instance's permissions allow access to the appropriate DynamoDb Table you can leave out the credentials.

If the table does not exist the bundle will create the table for you with the specified capacities. Once the table is created the capacity configuration values are no longer used (unless the table is deleted).

FAQ
===

[](#faq)

Fixing cURL error #77
---------------------

[](#fixing-curl-error-77)

Certain versions of CentOS AWS AMIs may need this additional php.ini configuration to fix this exception:

```
curl.cainfo="/etc/ssl/certs/ca-bundle.crt"

```

Source:

License
=======

[](#license)

MIT, See LICENSE

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~155 days

Recently: every ~110 days

Total

8

Last Release

3750d ago

Major Versions

0.7 → 1.02016-02-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd9c6dbc64b0d42aea79172a40fd6b4e8e4d3699b5ae08a960298fbe1caef9bf?d=identicon)[gwkunze](/maintainers/gwkunze)

---

Top Contributors

[![gwkunze](https://avatars.githubusercontent.com/u/196545?v=4)](https://github.com/gwkunze "gwkunze (10 commits)")[![okdewit](https://avatars.githubusercontent.com/u/1403548?v=4)](https://github.com/okdewit "okdewit (5 commits)")[![aklinkert](https://avatars.githubusercontent.com/u/1313774?v=4)](https://github.com/aklinkert "aklinkert (1 commits)")[![GPDev](https://avatars.githubusercontent.com/u/6680659?v=4)](https://github.com/GPDev "GPDev (1 commits)")[![mlimaloureiro](https://avatars.githubusercontent.com/u/2033673?v=4)](https://github.com/mlimaloureiro "mlimaloureiro (1 commits)")

---

Tags

symfonybundleawsdynamodbsession

### Embed Badge

![Health badge](/badges/gwk-dynamo-session-bundle/health.svg)

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

###  Alternatives

[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[uecode/qpush-bundle

Asynchronous processing for Symfony using Push Queues

1682.4M2](/packages/uecode-qpush-bundle)[mcfedr/awspushbundle

A set of services to simplify using Aws to send push notifications

40378.6k1](/packages/mcfedr-awspushbundle)[async-aws/async-aws-bundle

Configure all your AsyncAws services and enjoy the autowire greatness.

243.6M2](/packages/async-aws-async-aws-bundle)[platinumpixs/aws-symfony2-bundle

A simple Symfony 2 bundle for including the AWS SDK for PHP.

1274.3k1](/packages/platinumpixs-aws-symfony2-bundle)[oryxcloud/laravel-dynamodb-session-driver

DynamoDB Session Driver for Laravel 5

1460.8k](/packages/oryxcloud-laravel-dynamodb-session-driver)

PHPackages © 2026

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