Wallogit.com
2017 © Pedro Peláez
this works exactly like sessions, it will help you perform save items in session and retrieve them
To install the Affair, (*2)
first download via composer by running the command composer require dreamaker\affair
if you do not have composer you could just clone this repo, (*3)
after download, (*4)
Then include or into your project directory and put this at the top of you class or file
use Dreamaker\Affair\Affair;, (*5)
Affair::put($key, $value), (*6)
This method is used to save items into the session, but adding a key and value, (*7)
Affair::get($key), (*8)
This method is used to retrieve items from a session, (*9)
Affair::all(), (*10)
This returns all session saved, (*11)
To start a session, all you have to do is instantiate a new affair class, (*12)
$affair = new Affair;
This will start a session, (*13)
Affair::destroy()
This will destroy all session variables in existence, (*14)
Affair::exists($key)
This will return true if the session exists with the $key parameter passed into it otherwise false, (*15)
Affair is free software distributed under the terms of the MIT license., (*16)
Please report any issue you find in the issues page.
Pull requests are welcome., (*17)