PHPackages                             univeros/idempotency - 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. univeros/idempotency

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

univeros/idempotency
====================

Stripe-style Idempotency-Key primitive for Univeros: storage contract, adapters, and (in companion packages) PSR-15 middleware + spec block.

v2.5.1(1mo ago)00MITPHPPHP &gt;=8.3

Since May 31Pushed 1mo agoCompare

[ Source](https://github.com/univeros/idempotency)[ Packagist](https://packagist.org/packages/univeros/idempotency)[ Docs](https://univeros.io)[ RSS](/packages/univeros-idempotency/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (12)Versions (10)Used By (0)

univeros/idempotency
====================

[](#univerosidempotency)

Stripe-style `Idempotency-Key` primitive for Univeros: storage contract, adapters (InMemory / APCu / Redis), PSR-15 middleware, spec block, and an `x-altair-idempotency` OpenAPI 3.1 extension that round-trips the policy.

```
idempotency:
  ttl: 24h
  scope: tenant
  mode: required
```

Add the block to a spec → `bin/altair spec:scaffold` → the generated Action carries the policy → the host's `IdempotencyKeyMiddleware` reads it and enforces it per request.

See **[docs/packages/idempotency.md](../../../docs/packages/idempotency.md)** for the full reference: behaviour matrix, storage adapter trade-offs, round-trip semantics, host wiring.

Composer
--------

[](#composer)

```
composer require univeros/idempotency
```

PHP 8.3+; depends only on PSR HTTP interfaces plus `univeros/configuration` + `univeros/container`. Adapter-specific extensions (`ext-apcu`, `ext-redis`) are declared as `suggest` rather than `require`.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Total

9

Last Release

55d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/566016?v=4)[Antonio Ramirez](/maintainers/tonydspaniard)[@tonydspaniard](https://github.com/tonydspaniard)

---

Top Contributors

[![tonydspaniard](https://avatars.githubusercontent.com/u/566016?v=4)](https://github.com/tonydspaniard "tonydspaniard (5 commits)")

### Embed Badge

![Health badge](/badges/univeros-idempotency/health.svg)

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k19.5M1.8k](/packages/cakephp-cakephp)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.5k1.5M107](/packages/mcp-sdk)[typo3/cms-core

TYPO3 CMS Core

3713.2M5.2k](/packages/typo3-cms-core)[sunrise/http-router

A powerful solution as the foundation of your project.

17451.8k11](/packages/sunrise-http-router)[flarum/core

Delightfully simple forum software.

211.4M2.4k](/packages/flarum-core)

PHPackages © 2026

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