PHPackages                             phpolar/phpolar-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. phpolar/phpolar-storage

Abandoned → [phpolar/storage](/?search=phpolar%2Fstorage)Library

phpolar/phpolar-storage
=======================

A convenient tool to speed up the creation of data storage for application development.

7.0.1(3mo ago)1263↓100%[2 PRs](https://github.com/phpolar/storage/pulls)MITPHPPHP &gt;=8.3CI passing

Since Feb 1Pushed 5d agoCompare

[ Source](https://github.com/phpolar/storage)[ Packagist](https://packagist.org/packages/phpolar/phpolar-storage)[ RSS](/packages/phpolar-phpolar-storage/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (6)Versions (28)Used By (0)

 [![](./phpolar.svg)](./phpolar.svg)

PHPolar Data Storage Abstraction
================================

[](#phpolar-data-storage-abstraction)

[![Coverage Status](https://camo.githubusercontent.com/fe36152ba6ff9628fcba01c052da6a1fc38f410c246aed94095cd57ad1599ad4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7068706f6c61722f73746f726167652f62616467652e737667)](https://coveralls.io/github/phpolar/storage) [![Latest Stable Version](https://camo.githubusercontent.com/49619acd93337b671ab8ded658299d08b265c12349ea5d8428160190a89fd359/687474703a2f2f706f7365722e707567782e6f72672f7068706f6c61722f73746f726167652f76)](https://packagist.org/packages/phpolar/storage) [![Total Downloads](https://camo.githubusercontent.com/b4d866457ba42da0b2c7290773ad456a284f2d1b549893ad8f0b8b2acd6a3a26/687474703a2f2f706f7365722e707567782e6f72672f7068706f6c61722f73746f726167652f646f776e6c6f616473)](https://packagist.org/packages/phpolar/storage) [![Latest Unstable Version](https://camo.githubusercontent.com/0f44a3d70d0f67983012f27afb0190ef7ab0ed356a063e7a2b436e806eab670c/687474703a2f2f706f7365722e707567782e6f72672f7068706f6c61722f73746f726167652f762f756e737461626c65)](https://packagist.org/packages/phpolar/storage) [![License](https://camo.githubusercontent.com/1645a2b55aee612afbdec96ddc2dbf73f1966658154e265a8c06ac765cf6a067/687474703a2f2f706f7365722e707567782e6f72672f7068706f6c61722f73746f726167652f6c6963656e7365)](https://packagist.org/packages/phpolar/storage) [![PHP Version Require](https://camo.githubusercontent.com/05822fb532da8db171a7772df281d0577d923e88745ef7932e5ed3a362ce052e/687474703a2f2f706f7365722e707567782e6f72672f7068706f6c61722f73746f726167652f726571756972652f706870)](https://packagist.org/packages/phpolar/storage)

Use to create persistence layer repositories, services, etc. with improved type safety
--------------------------------------------------------------------------------------

[](#use-to-create-persistence-layer-repositories-services-etc-with-improved-type-safety)

Usage
-----

[](#usage)

```
class KafkaStorage extends AbstractStorage
{
    public function __construct(
        // ...
    ) {
        parent::__construct($lifeCycleHooks);
        // ...
    }
    // ...
}

$key0 = uniqid();

$kafkaStorage->save($key0, $data);

$result = $kafkaStorage->find($key0);

$item0 = $result
    ->orElse(static function () {
            $this->logger->warn($notFoundMessage);
            return new ResourceNotFound();
        }
    )
    ->tryUnwrap()

$numItems = $kafkaStorage->count();

$allItems = $kafkaStorage->findAll();

$kafka->remove($key0);

$kafka->clear();
```

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance90

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

23

Last Release

108d ago

Major Versions

2.0.0 → 3.0.02025-01-19

3.1.1 → 4.0.02025-05-08

4.0.0 → 5.0.02025-05-26

5.1.0 → 6.0.02025-05-29

6.0.0 → 7.0.02025-06-02

PHP version history (2 changes)0.1.0PHP &gt;=8.1

3.1.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f34e51c09f71ccba1670d080b700e489cc2cffd43f4bed7684af4dff0195732?d=identicon)[phpolar](/maintainers/phpolar)

![](https://www.gravatar.com/avatar/675036308ed14798b54aadfc314eeaae1f931b349ae730252141ee1c7661736a?d=identicon)[ericfortmeyer](/maintainers/ericfortmeyer)

---

Top Contributors

[![ericfortmeyer](https://avatars.githubusercontent.com/u/40972462?v=4)](https://github.com/ericfortmeyer "ericfortmeyer (124 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (72 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (70 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpolar-phpolar-storage/health.svg)

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

PHPackages © 2026

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