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

ActiveLibrary

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

Use WordPress transients as a PSR-16 cache.

1.1(6y ago)01.3k↓100%11MITPHP

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 1mo 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 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

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

2256d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e381f63ec3ca6e480e72360844582c7ad4bcd49f209e14062224654fab96ca48?d=identicon)[LachlanArthur](/maintainers/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.6k509.9M17.0k](/packages/laravel-framework)[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[illuminate/contracts

The Illuminate Contracts package.

704122.9M10.1k](/packages/illuminate-contracts)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69333.0M114](/packages/algolia-algoliasearch-client-php)

PHPackages © 2026

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