Package Data | |
---|---|
Maintainer Username: | mozammil |
Maintainer Contact: | mozammil@oryxcloud.com (Mozammil Khodabacchas) |
Package Create Date: | 2017-05-11 |
Package Last Update: | 2020-11-20 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-31 03:03:37 |
Package Statistics | |
---|---|
Total Downloads: | 58,308 |
Monthly Downloads: | 216 |
Daily Downloads: | 6 |
Total Stars: | 15 |
Total Watchers: | 3 |
Total Forks: | 7 |
Total Open Issues: | 1 |
This package is a Laravel Session Driver for DynamoDB
This package can be installed through Composer.
composer require oryxcloud/laravel-dynamodb-session-driver
After updating composer, add the service provider to the providers
array in config/app.php
'providers' => [
...
OryxCloud\DynamoDbSessionDriver\SessionServiceProvider::class,
...
];
You can publish the config file of this package with this command:
php artisan vendor:publish --provider="OryxCloud\DynamoDbSessionDriver\SessionServiceProvider"
The following config file will be published in config/dynamodb-session.php
<?php
return [
/*
|--------------------------------------------------------------------------
| AWS Configuration details
|--------------------------------------------------------------------------
|
*/
'region' => env('AWS_REGION', null),
'key' => env('AWS_ACCESS_KEY_ID', null),
'secret' => env('AWS_SECRET_ACCESS_KEY', null),
'endpoint' => env('DYNAMODB_HOST', null),
/*
|--------------------------------------------------------------------------
| Hash key
|--------------------------------------------------------------------------
| Name of hash key in table. Default: "id".
*/
'hash_key' => env('DYNAMODB_HASH_KEY', 'id'),
];
You should also add the specified keys in your .env
file.
After going through all the installation steps, the dynamodb
Session driver will now be available to be used. So you can just change the following line in your .env
file.
SESSION_DRIVER=dynamodb
DynamoDb Session Handler for Symfony 2
The MIT License (MIT). Please see License File for more information.