All Projects → oryxcloud → laravel-dynamodb-session-driver

oryxcloud / laravel-dynamodb-session-driver

Licence: MIT license
DynamoDB Session Driver for Laravel 5

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-dynamodb-session-driver

flash
An easy way for Laravel flash notifications.
Stars: ✭ 14 (-6.67%)
Mutual labels:  laravel-5-package
parser
arc.app, .arc, arc.json, arc.yaml, and arc.toml support
Stars: ✭ 20 (+33.33%)
Mutual labels:  dynamodb
Laravel-pushover
A Laravel wrapper for Pushover. Pushover makes it easy to get real-time notifications on your Android, iPhone, iPad, and Desktop (Pebble, Android Wear, and Apple watches, too!)
Stars: ✭ 49 (+226.67%)
Mutual labels:  laravel-5-package
secure-cookie
Secure cookies and sessions for WSGI
Stars: ✭ 30 (+100%)
Mutual labels:  session
laravel-email-templates
Laravel 5 database driven email templates
Stars: ✭ 23 (+53.33%)
Mutual labels:  laravel-5-package
sam-python-crud-sample
This project is an example about lambda, SAM, dynamodb. This repository contains source code and supporting files for a serverless application that you can deploy with the SAM CLI. It includes the following files and folders.
Stars: ✭ 71 (+373.33%)
Mutual labels:  dynamodb
sessions
A non-blocking session handler for PHP
Stars: ✭ 23 (+53.33%)
Mutual labels:  session
aws-certified-developer-associate-udemy-notes
AWS Certified Developer Associate Udemy Notes
Stars: ✭ 20 (+33.33%)
Mutual labels:  dynamodb
dynocsv
Exports DynamoDB table into CSV
Stars: ✭ 34 (+126.67%)
Mutual labels:  dynamodb
data
[deprecated] Generate a DynamoDB data access layer from an .arc file. Automatically disambiguates testing (in memory) from deployment staging and production tables
Stars: ✭ 20 (+33.33%)
Mutual labels:  dynamodb
terraform-aws-dynamodb-autoscaler
Terraform module to provision DynamoDB autoscaler
Stars: ✭ 21 (+40%)
Mutual labels:  dynamodb
graphql-ttl-transformer
♻ Enable DynamoDB's time-to-live feature to auto-delete old entries in your AWS Amplify API!
Stars: ✭ 75 (+400%)
Mutual labels:  dynamodb
dynamodb-onetable
DynamoDB access and management for one table designs with NodeJS
Stars: ✭ 508 (+3286.67%)
Mutual labels:  dynamodb
serverless-websockets-chat
Realtime chat app based on AWS Lambda, API Gateway, DynamoDB, Websockets, React in TS
Stars: ✭ 19 (+26.67%)
Mutual labels:  dynamodb
ocaml-cookie
Working with cookies in OCaml and Reason
Stars: ✭ 31 (+106.67%)
Mutual labels:  session
laravel-two-factor-authentication
A two-factor authentication package for Laravel >= 8
Stars: ✭ 37 (+146.67%)
Mutual labels:  laravel-5-package
dynamolock
DynamoDB Lock Client for Go
Stars: ✭ 100 (+566.67%)
Mutual labels:  dynamodb
photo-sharing-website
Static pre-rendered photo-sharing website
Stars: ✭ 33 (+120%)
Mutual labels:  dynamodb
aws-serverless-prototype
Serverless Frameworkを使ったAWS Lambdaプロジェクトの試作品
Stars: ✭ 16 (+6.67%)
Mutual labels:  dynamodb
lockbot
🔒 Coordinate use of your team's shared resources, in Slack 🤝
Stars: ✭ 47 (+213.33%)
Mutual labels:  dynamodb

DynamoDB Session Driver for Laravel 5

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].