oryxcloud/laravel-dynamodb-session-driver 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

oryxcloud/laravel-dynamodb-session-driver

Composer 安装命令:

composer require oryxcloud/laravel-dynamodb-session-driver

包简介

DynamoDB Session Driver for Laravel 5

README 文档

README

This package is a Laravel Session Driver for DynamoDB

Installation

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),

    /*
    |--------------------------------------------------------------------------
    | DynamoDB Session Configuration Details
    |--------------------------------------------------------------------------
    |
    */
    // Name of table to store the sessions. Default: config('session.table')
    'table_name' => env( 'DYNAMO_SESSIONS_TABLE', config('session.table') ),

    // Name of hash key in table. Default: "id"
    'hash_key' => env('DYNAMODB_HASH_KEY', 'id'),

    // Name of the data attribute in table. Default: "data"
    'data_attribute' => env('DYNAMODB_DATA_ATTRIBUTE', 'data'),

    // Name of the session life time attribute in table. Default: "expires"
    'session_lifetime_attribute' => env('DYNAMODB_SESSION_LIFETIME_ATTRIBUTE', 'expires')
];

You should also add the specified keys in your .env file.

Usage

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

Contributors

Credits

DynamoDb Session Handler for Symfony 2

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 61.02k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固