PHPackages                             lachlanarthur/psr16-wordpress-transients - 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. lachlanarthur/psr16-wordpress-transients

ActiveLibrary[Caching](/categories/caching)

lachlanarthur/psr16-wordpress-transients
========================================

Use WordPress transients as a PSR-16 cache.

1.1(6y ago)01.3k11MITPHP

Since Mar 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/LachlanArthur/Psr16WordPressTransients)[ Packagist](https://packagist.org/packages/lachlanarthur/psr16-wordpress-transients)[ RSS](/packages/lachlanarthur-psr16-wordpress-transients/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

### Use the WordPress transient API as a PSR-16 cache

[](#use-the-wordpress-transient-api-as-a-psr-16-cache)

```
composer require lachlanarthur/psr16-wordpress-transients
```

```
use LachlanArthur\Psr16WordPressTransients\WordPressTransientAdapter

new WordPressTransientAdapter( 'prefix-', MONTH_IN_SECONDS );
```

### NOTES

[](#notes)

- This cache cannot store `null` or `false`. This is because the WP transient API returns `false` for a cache miss, and the PSR-16 spec must return `null` for a cache miss.
- Key length is restricted to [172 characters](https://codex.wordpress.org/Transients_API#Saving_Transients), including the prefix.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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

2

Last Release

2302d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1870204?v=4)[Lachlan Arthur](/maintainers/LachlanArthur)[@LachlanArthur](https://github.com/LachlanArthur)

---

Top Contributors

[![LachlanArthur](https://avatars.githubusercontent.com/u/1870204?v=4)](https://github.com/LachlanArthur "LachlanArthur (6 commits)")

---

Tags

psr-16wordpress

### Embed Badge

![Health badge](/badges/lachlanarthur-psr16-wordpress-transients/health.svg)

```
[![Health](https://phpackages.com/badges/lachlanarthur-psr16-wordpress-transients/health.svg)](https://phpackages.com/packages/lachlanarthur-psr16-wordpress-transients)
```

###  Alternatives

[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1067.2M145](/packages/laminas-laminas-cache)[sabre/cache

Simple cache abstraction layer implementing PSR-16

551.3M4](/packages/sabre-cache)[voku/simple-cache

Simple Cache library

322.6M9](/packages/voku-simple-cache)[graham-campbell/bounded-cache

A Bounded TTL PSR-16 Cache Implementation

112.1M10](/packages/graham-campbell-bounded-cache)[neos/cache

Neos Cache Framework

102.1M36](/packages/neos-cache)

PHPackages © 2026

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