2017 © Pedro Peláez
 

library easy-session

EasySession is an easy to use minimal PHP session storage system.

image

amitkhare/easy-session

EasySession is an easy to use minimal PHP session storage system.

  • Saturday, July 22, 2017
  • by amitkhare
  • Repository
  • 1 Watchers
  • 1 Stars
  • 31 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

amitkhare/easy-session

EasySession is an easy to use minimal PHP session storage system

INSTALL

VIA COMPOSER

composer require amitkhare/easy-session dev-master

VIA GIT

git clone https://github.com/amitkhare/easy-session.git

EXAMPLE USAGE

<?php

// autoload via composer
require __DIR__.'/../vendor/autoload.php';

// OR WITHOUT COMPOSER
// require __DIR__.'/PATH-TO/EasySession.php';

// Take an instance of Session Class.
$sessionStoreName='MyCart';
$session = new AmitKhare\EasySession($sessionStoreName);

$key = 1;
$value = ['var1'=>123,'var2'=>'amit'];

// store item in $sessionStoreName
$session->set($key,$value);

// get item from $sessionStoreName by $key
$session->get($key);

// check if item exists in $sessionStoreName
$session->exists($key);

// all $sessionStoreName items
$session->all();

// remove specific item from $sessionStoreName
$session->remove($key);

// clear all items in $sessionStoreName
$session->clear();

// count items in $sessionStoreName
$session->count();



The Versions

22/07 2017

dev-master

9999999-dev http://github.com/amitkhare/easy-session

EasySession is an easy to use minimal PHP session storage system.

  Sources   Download

MIT

by Amit Kumar Khare

22/07 2017

0.0.1

0.0.1.0 http://github.com/amitkhare/easy-session

EasySession is an easy to use minimal PHP session storage system.

  Sources   Download

MIT

by Amit Kumar Khare