PHPackages                             lazier/storage - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. lazier/storage

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

lazier/storage
==============

Lazier key-value store

v0.2.0(4y ago)03MITPHPPHP &gt;=8.0

Since Oct 25Pushed 4y agoCompare

[ Source](https://github.com/lazierphp/storage)[ Packagist](https://packagist.org/packages/lazier/storage)[ RSS](/packages/lazier-storage/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Lazier: Storage Component
=========================

[](#lazier-storage-component)

*Lazier Storage* provides a simple key-value store. Often you want to bootstrap an application and use a file-based key-value store. Maybe you want to use to another adapter later. For this case there are different adapters for this component.

Lazier Storage is inspired by the LocalStorage and SessionStorage known from web browsers. In addition, the JSON adapter is compatible with the one from the package `webmozart/key-value-store`, which is no longer compatible with PHP 8.

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

[](#installation)

Using Composer:

```
composer require lazier/storage

```

Usage
-----

[](#usage)

Example:

```
