like html5 local storage but for php.
composer require mordisacks/localstorage
Statically
LocalStorage::set('foo', 'bar');
echo LocalStorage::get('foo'); // outputs bar
Or via instance
$localStorage = new LocalStorage();
$localStorage->foo = 'bar';
echo $localStorage->foo; // outputs bar
Use custom driver
LocalStorage::init(LocalStorageDriverInterface $driver);
And via instance
$localStorage = new LocalStorage(LocalStorageDriverInterface $driver);