PHPackages                             g4/identity-map - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. g4/identity-map

ActiveLibrary[File &amp; Storage](/categories/file-storage)

g4/identity-map
===============

identity-map php library

1.3.0(3y ago)263.0k↓50%32MITPHP

Since Aug 3Pushed 3y ago8 watchersCompare

[ Source](https://github.com/g4code/identity-map)[ Packagist](https://packagist.org/packages/g4/identity-map)[ RSS](/packages/g4-identity-map/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (7)Used By (2)

identity-map
============

[](#identity-map)

> identity-map - In-memory data store - [php](http://php.net) library

[![Build Status](https://camo.githubusercontent.com/5eda95bf0f12583642e7fe6d1e12e1c5e36ac5c2e94946af8d748050ec1acafc/68747470733a2f2f7472617669732d63692e6f72672f6734636f64652f6964656e746974792d6d61702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/g4code/identity-map)

Install
-------

[](#install)

```
composer require g4/identity-map
```

Usage
-----

[](#usage)

```
use G4\IdentityMap\IdentityMap;

$identityMap = new IdentityMap();

$key = 'some_unique_key';
$data = 'some_data';

// add data
$identityMap->set($key, $data);

// retrieve data
$data = $identityMap->get($key);

// check if data is stored
$identityMap->has($key);

// remove data
$identityMap->delete($key);

// clear all
$identityMap->clear();
```

Development
-----------

[](#development)

### Install dependencies

[](#install-dependencies)

```
composer install
```

### Run tests

[](#run-tests)

```
composer unit-test
```

License
-------

[](#license)

(The MIT License) see LICENSE file for details...

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~478 days

Recently: every ~597 days

Total

6

Last Release

1183d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6

1.2.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/12ceafbc629c3019d7cd78dfec322d694f44e0df8741bc6044f4acbf99964ff8?d=identicon)[g4code](/maintainers/g4code)

---

Top Contributors

[![gomboc](https://avatars.githubusercontent.com/u/1145653?v=4)](https://github.com/gomboc "gomboc (18 commits)")[![ppavlovic](https://avatars.githubusercontent.com/u/2664974?v=4)](https://github.com/ppavlovic "ppavlovic (2 commits)")[![sun1one](https://avatars.githubusercontent.com/u/106227458?v=4)](https://github.com/sun1one "sun1one (1 commits)")

---

Tags

data-storein-memorymemoryphpphp7identitymemorymapstorageIn Memory

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/g4-identity-map/health.svg)

```
[![Health](https://phpackages.com/badges/g4-identity-map/health.svg)](https://phpackages.com/packages/g4-identity-map)
```

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[qiniu/php-sdk

Qiniu Resource (Cloud) Storage SDK for PHP

8483.0M240](/packages/qiniu-php-sdk)[sylius/resource-bundle

Resource component for Sylius.

23410.2M173](/packages/sylius-resource-bundle)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)

PHPackages © 2026

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