PHPackages                             stolfam/data-storage-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. stolfam/data-storage-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

stolfam/data-storage-php
========================

Super simple interface for data storage written in PHP.

1.0.5(1y ago)05991MITPHPPHP &gt;= 8.0.0

Since Sep 12Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (1)

Data Storage PHP
================

[](#data-storage-php)

Install
-------

[](#install)

`composer require stolfam/data-storage-php`

Use
---

[](#use)

You can use existing implementations or implement your own logic of save/load by implementing interface `IDataStorage`.

### Example

[](#example)

```
// you can use existing implementation or implement your own logic of save/load
$dataStorage = new CookiesStorage();
$serializableData = ...

// set data with protection to overwriting (example 1)
if($dataStorage->save("key", $serializableData, false)) {
    // successfully saved
} else {
    // "key" exists or error on save
}

// set data with overwritting enabled (example 2)
if($dataStorage->save("key", $serializableData)) {
    // successfully saved
} else {
    // error on save
}

// get data (example 1)
if($dataStorage->exists("key")) {
    // we are 100% sure that data exists
    $data = $dataStorage->load("key");
}

// get data (example 2)
$data = $dataStorage->load("key");
if($data != null) {
    // we are 100% sure that data exists
}

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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 ~4 days

Total

4

Last Release

601d ago

PHP version history (2 changes)1.0.2PHP &gt;= 8.2.0

1.0.4PHP &gt;= 8.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a166fb0b766fa1febb53e4dcee9075a1350e7438e623cd7baafbd8e40557fb9?d=identicon)[stolfam](/maintainers/stolfam)

---

Top Contributors

[![stolfam](https://avatars.githubusercontent.com/u/37073073?v=4)](https://github.com/stolfam "stolfam (7 commits)")

### Embed Badge

![Health badge](/badges/stolfam-data-storage-php/health.svg)

```
[![Health](https://phpackages.com/badges/stolfam-data-storage-php/health.svg)](https://phpackages.com/packages/stolfam-data-storage-php)
```

###  Alternatives

[pxlrbt/filament-environment-indicator

Indicator for the current environment inside Filament

151923.9k12](/packages/pxlrbt-filament-environment-indicator)[simplito/bn-php

Big number implementation compatible with bn.js

202.2M15](/packages/simplito-bn-php)[typo3/cms-t3editor

TYPO3 CMS T3Editor - JavaScript-driven editor with syntax highlighting and code completion. Based on CodeMirror.

115.9M50](/packages/typo3-cms-t3editor)

PHPackages © 2026

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