PHP code example of mordisacks / localstorage
1. Go to this page and download the library: Download mordisacks/localstorage library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mordisacks / localstorage example snippets
LocalStorage::set('foo', 'bar');
echo LocalStorage::get('foo'); // outputs bar
$localStorage = new LocalStorage();
$localStorage->foo = 'bar';
echo $localStorage->foo; // outputs bar
LocalStorage::init(LocalStorageDriverInterface $driver);
$localStorage = new LocalStorage(LocalStorageDriverInterface $driver);