PHPackages                             lefuturiste/localstorage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. lefuturiste/localstorage

ActiveLibrary[Caching](/categories/caching)

lefuturiste/localstorage
========================

Key/value JSON localstorage like redis

v1.4.2(4y ago)3259MITPHPPHP &gt;=7.1

Since Nov 6Pushed 4y agoCompare

[ Source](https://github.com/lefuturiste/localstorage)[ Packagist](https://packagist.org/packages/lefuturiste/localstorage)[ RSS](/packages/lefuturiste-localstorage/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (3)Versions (9)Used By (0)

PHP Local storage
=================

[](#php-local-storage)

[![Build Status](https://camo.githubusercontent.com/295764ba37dcb989ec4d9989f6d8d4f33e14f9a201075671b7bf3bbff4ff6128/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e742e7376673f75726c3d6874747073253341253246253246616374696f6e732d62616467652e6174726f782e6465762532466c656675747572697374652532466c6f63616c73746f726167652532466261646765267374796c653d666f722d7468652d6261646765)](https://actions-badge.atrox.dev/lefuturiste/localstorage/goto)

This library can be useful if you need localstorage/cache key:value on disk for your PHP application.

Installation
------------

[](#installation)

You can easily install the localstorage lib using composer:

`composer require lefuturiste/localstorage`

Usage
-----

[](#usage)

All methods are on the Lefuturiste\\LocalStorage\\LocalStorage class

This is a small and quick example of this lib.

```
