2017 © Pedro Peláez
 

library session

Session Handler

image

erdiko/session

Session Handler

  • Wednesday, September 13, 2017
  • by arroyolabs
  • Repository
  • 5 Watchers
  • 3 Stars
  • 119 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

Erdiko Session Package

Package version CircleCI License, (*1)

Important: This package is currently on development, please don't use it until have a beta or stable version.

Introduction

Erdiko Session is a package to handle in an easy and elastic way to persistent user data through the lifetime of your application., (*2)

Official Documentation

Documentation for Erdiko Session Package can be found on the Erdiko website., (*3)

Installation

We recommend installing Erdiko Session Package with Composer. At the commandline simply run:, (*4)

composer require erdiko/session

Drivers

Current Drivers Available: - File: SessionDriverFile, (*5)

Coming Drivers in development: - Redis: SessionDriverRedis - Database: SessionDriverDatabase - Cookie: SessionDriverCookie, (*6)

Dependencies

This package depends of Erdiko\Core, (*7)

Configuration

File Path, (*8)

[site_root]/app/config/default/session.json

File format, (*9)

{
  "default": { // Driver Source
    "driver": "file",  // Driver Type
    "path": "/tmp",
    "lifetime": 60000
  }
}

Available Methods

You will find several methods that will satisfy your requirements for handling session data., (*10)

  • get
  • set
  • has
  • forget
  • exists

Basic Usage

For more details please see Advance Usage Detail Page., (*11)

Set Method

Set the value on session, (*12)

Session::set('name', 'value');

Get method

Retrieves the value from the session, (*13)

Session::get('name');

Has method

Verifies if the given key exists and has a value on the session, (*14)

Session::get('name');

Exists method

Verifies if the given key exists, without verify if has or not value, (*15)

Session::set('name', 'value');

Forget method

Removes the given key from the session, (*16)

Session::set('name', 'value');

Tests

On development, (*17)

Credits

  • Mauricio Gastón
  • John Arroyo
  • Leo Daidone

All Contributors, (*18)

  • If you want to help, please do, we'd love more brainpower! Fork, commit your enhancements and do a pull request. If you want to get to even more involved please contact us!

Sponsors

Arroyo Labs, (*19)

License

Erdiko is open-sourced software licensed under the MIT license, (*20)

The Versions

13/09 2017

dev-master

9999999-dev http://erdiko.org

Session Handler

  Sources   Download

MIT

The Requires

 

by Arroyo Labs

session erdiko

13/09 2017

0.1.1

0.1.1.0 http://erdiko.org

Session Handler

  Sources   Download

MIT

The Requires

 

by Arroyo Labs

session erdiko

12/09 2017

dev-erdiko2

dev-erdiko2 http://erdiko.org

Session Handler

  Sources   Download

MIT

The Requires

 

by Arroyo Labs

session erdiko

14/08 2017

dev-develop

dev-develop http://erdiko.org

Session Handler

  Sources   Download

MIT

The Requires

 

by Arroyo Labs

session erdiko

14/08 2017

0.1.0

0.1.0.0 http://erdiko.org

Session Handler

  Sources   Download

MIT

The Requires

 

by Arroyo Labs

session erdiko