PHPackages                             thavarshan/storable - 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. thavarshan/storable

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

thavarshan/storable
===================

File Storabled key, value storage system.

v1.7.1(5y ago)42.7kMITPHPPHP ^7.4|^8.0

Since Aug 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Thavarshan/storable)[ Packagist](https://packagist.org/packages/thavarshan/storable)[ RSS](/packages/thavarshan-storable/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Storable PHP
============

[](#storable-php)

Storable PHP makes it easy to store and retrieve some loose values with the same exact syntax as Laravel's config repository. Stored values are saved as a JSON file.

Getting Started
---------------

[](#getting-started)

### Installing

[](#installing)

Storable is easy to install into your project. simply install Storable by using composer to pull it in and it's dependencies.

```
composer require thavarshan/storable
```

### Basic Usage

[](#basic-usage)

```
use \Storable\Store;

$store = new Store($pathToFile);
$store->set('foo', 'bar');
$store->get('foo'); // should return 'bar'.
```

All values will be saved as JSON in the given file. When there are no values stored, the file will be deleted. You can call the following methods on the `Store`.

Running the tests
-----------------

[](#running-the-tests)

Storable uses PHPUnit for testing. To clone Storable into your local machine and run tests, simple open up your preferred terminal application, navigate into Storable project root directory and run the following command..

```
git clone git@github.com:Thavarshan/storable.git
cd storable
composer install
composer test
```

Contributing
------------

[](#contributing)

Please read [CONTRIBUTING.md](https://github.com/Thavarshan/storable/blob/49964bea98f3b34ddb6ce59519b14e2885dc7413/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

Authors
-------

[](#authors)

- **Thavarshan Thayananthajothy** - *Initial work* - [Thavarshan](https://github.com/Thavarshan)

See also the list of [contributors](https://github.com/Thavarshan/storable/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/Thavarshan/storable/blob/49964bea98f3b34ddb6ce59519b14e2885dc7413/LICENSE.md) file for details

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~159 days

Total

2

Last Release

1927d ago

PHP version history (2 changes)v1.0.0PHP ^7.3

v1.7.1PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6a36cdb0d28baadcd00b763ff51b42fdb5128186b1ff0e46c007d43376bfe4d?d=identicon)[Thavarshan](/maintainers/Thavarshan)

---

Top Contributors

[![Thavarshan](https://avatars.githubusercontent.com/u/10804999?v=4)](https://github.com/Thavarshan "Thavarshan (13 commits)")

---

Tags

jsonphpsettingsphpjsonSettings

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thavarshan-storable/health.svg)

```
[![Health](https://phpackages.com/badges/thavarshan-storable/health.svg)](https://phpackages.com/packages/thavarshan-storable)
```

###  Alternatives

[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)[adhocore/json-fixer

Fix/repair truncated JSON data

51543.2k2](/packages/adhocore-json-fixer)[blancks/fast-jsonpatch-php

Class designed to efficiently handle JSON Patch operations in accordance with the RFC 6902 specification

396.4k](/packages/blancks-fast-jsonpatch-php)[josantonius/json

PHP simple library for managing Json files.

1621.6k10](/packages/josantonius-json)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
