PHPackages                             upaid/contextual-keys - 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. [Caching](/categories/caching)
4. /
5. upaid/contextual-keys

ActiveLibrary[Caching](/categories/caching)

upaid/contextual-keys
=====================

This package provides a simple way to create contextual keys based on caller class, context, action and key. Useful for dedicated cache classes

1.0.0(7y ago)04.7k1MITPHP

Since Jun 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/uPaid/contextual-keys)[ Packagist](https://packagist.org/packages/upaid/contextual-keys)[ Docs](https://github.com/uPaid/contextual-keys)[ RSS](/packages/upaid-contextual-keys/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

Contextual keys
===============

[](#contextual-keys)

[![License: MIT](https://camo.githubusercontent.com/c2bffd81d308ced1cc3b0d66fb0ed453ab478a5e17c988b780f9de986a390ee2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/MIT)

This package provides a simple way to create contextual keys based on caller class, context, action and key. Useful for dedicated cache classes

Installation
------------

[](#installation)

This package can be installed through Composer:

```
composer require upaid/contextual-keys
```

Or by adding the following line to the `require` section of your Laravel app's `composer.json` file:

```
    "require": {
        "upaid/contextual-keys": "1.*"
    }
```

Run `composer update upaid/contextual-keys` to install the package.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

Unknown

Total

1

Last Release

2878d ago

### Community

Maintainers

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

---

Top Contributors

[![uPaid](https://avatars.githubusercontent.com/u/18398854?v=4)](https://github.com/uPaid "uPaid (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/upaid-contextual-keys/health.svg)

```
[![Health](https://phpackages.com/badges/upaid-contextual-keys/health.svg)](https://phpackages.com/packages/upaid-contextual-keys)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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