Skip to content

MordiSacks/LocalStorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LocalStorage

like html5 local storage but for php.

Installation

composer require mordisacks/localstorage

Usage

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);

About

like html5 local storage but for php.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages