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 2d 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

2347d 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

[laravel/framework

The Laravel Framework.

34.9k556.2M21.3k](/packages/laravel-framework)[illuminate/contracts

The Illuminate Contracts package.

707133.3M15.0k](/packages/illuminate-contracts)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.8M178](/packages/algolia-algoliasearch-client-php)[moonshine/moonshine

Laravel administration panel

1.3k268.2k88](/packages/moonshine-moonshine)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k52](/packages/civicrm-civicrm-core)

PHPackages © 2026

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