2017 © Pedro Peláez
 

library rka-slim-session-middleware

Simple session middleware for Slim Framework

image

akrabat/rka-slim-session-middleware

Simple session middleware for Slim Framework

  • Monday, April 18, 2016
  • by akrabat
  • Repository
  • 5 Watchers
  • 40 Stars
  • 21,423 Installations
  • PHP
  • 9 Dependents
  • 0 Suggesters
  • 14 Forks
  • 7 Open issues
  • 8 Versions
  • 11 % Grown

The README.md

RKA Slim Session Middleware

Middleware for [Slim Framework][1] that starts a session. Also provides a useful Session class., (*1)

Installation

composer require "akrabat/rka-slim-session-middleware"

Usage

Add middleware as usual:, (*2)

$app->add(new \RKA\SessionMiddleware(['name' => 'MySessionName']));

RKA\Session

You can use \RKA\Session to access session variables. The main thing that this gives you is defaults and an OO interface:, (*3)

$app->get('/', function ($request, $response) {
    $session = new \RKA\Session();

    // Get session variable:
    $foo = $session->get('foo', 'some-default');
    $bar = $session->bar;

    // Set session variable:
    $session->foo = 'this';
    $session->set('bar', 'that');

    return $response;
});

if you need to destroy the session, you can do:, (*4)

\RKA\Session::destroy();

The Versions

18/04 2016

dev-master

9999999-dev http://github.com/akrabat/rka-slim-session-middleware

Simple session middleware for Slim Framework

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5

 

The Development Requires

middleware slim session

18/04 2016

2.0.0

2.0.0.0 http://github.com/akrabat/rka-slim-session-middleware

Simple session middleware for Slim Framework

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5

 

The Development Requires

middleware slim session

18/04 2016

2.0.0-RC1

2.0.0.0-RC1 http://github.com/akrabat/rka-slim-session-middleware

Simple session middleware for Slim Framework

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5

 

The Development Requires

middleware slim session

11/01 2015

1.x-dev

1.9999999.9999999.9999999-dev http://github.com/akrabat/rka-slim-session-middleware

Simple session middleware for Slim Framework

  Sources   Download

BSD-3-Clause

The Requires

 

middleware slim session

11/01 2015

1.0.3

1.0.3.0 http://github.com/akrabat/rka-slim-session-middleware

Simple session middleware for Slim Framework

  Sources   Download

BSD-3-Clause

The Requires

 

middleware slim session

08/01 2015

1.0.2

1.0.2.0 http://github.com/akrabat/rka-slim-session-middleware

Simple session middleware for Slim Framework

  Sources   Download

BSD-3-Clause

The Requires

 

middleware slim session

07/01 2015

1.0.1

1.0.1.0 http://github.com/akrabat/rka-slim-session-middleware

Simple session middleware for Slim Framework

  Sources   Download

BSD-3-Clause

The Requires

 

middleware slim session

07/01 2015

1.0

1.0.0.0 http://github.com/akrabat/rka-slim-session-middleware

Simple session middleware for Slim Framework

  Sources   Download

BSD-3-Clause

The Requires

 

middleware slim session