pythagor / yii2-dynamodbsession
Amazon DynamoDB Session for Yii2
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 1
Type:yii2-extension
Requires
- php: >=5.4.0
- aws/aws-sdk-php: 2.7.3
Requires (Dev)
- phpunit/phpunit: 4.3.*
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-01-14 09:53:42 UTC
README
The yii2-dynamodbsession extension is a Yii2 component for store sessions in the Amazon AWS DynamoDB storage.
Installation
The preferred way to install this extension is through composer.
Configuration
Add session component into your components config.
Example
'components' => [ // ... 'session' => [ 'class' => 'pythagor\dynamodbsession\DynamoDbSession', 'sessionTable' => 'YourTableName', 'idColumn' => 'id', 'dataColumn' => 'data', 'expireColumn' => 'expire', 'params' => [ 'key' => 'YOUR_AWS_ACCESS_KEY_ID', 'secret' => 'YOUR_AWS_SECRET_ACCESS_KEY', 'region' => 'us-west-2', ], ], ],
License
yii2-dynamodbsession is released under the BSD 3-Clause License.