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)06011MITPHPPHP &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 today

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 52% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

646d 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

[jcergolj/extra-checks-for-spatie-laravel-server-monitor

Additional custom checks for Spatie laravel-server-monitor package

546.5k](/packages/jcergolj-extra-checks-for-spatie-laravel-server-monitor)[nextgen-tech/gs1-decoder

1030.0k](/packages/nextgen-tech-gs1-decoder)[rexlmanu/laravel-tickets

Simple but effective solutions to provide support

171.2k](/packages/rexlmanu-laravel-tickets)[maniruzzaman/laravel-unique-slug

A simple but beautiful unique slug generator for Laravel eloquent model.

111.8k](/packages/maniruzzaman-laravel-unique-slug)

PHPackages © 2026

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