PHPackages                             addshore/psr-6-mediawiki-badostuff-adapter - 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. addshore/psr-6-mediawiki-badostuff-adapter

Abandoned → [addshore/psr-6-mediawiki-bagostuff-adapter](/?search=addshore%2Fpsr-6-mediawiki-bagostuff-adapter)Library[Caching](/categories/caching)

addshore/psr-6-mediawiki-badostuff-adapter
==========================================

A MediaWiki BagOStuff PSR-6 adapter library

0.2(1mo ago)0291GPL-2.0-or-laterPHPPHP ^8.2CI passing

Since Feb 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/addshore/psr-6-mediawiki-bagostuff-adapter)[ Packagist](https://packagist.org/packages/addshore/psr-6-mediawiki-badostuff-adapter)[ RSS](/packages/addshore-psr-6-mediawiki-badostuff-adapter/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (9)Versions (5)Used By (0)

PSR-6 MediaWiki BagOStuff Adapter
=================================

[](#psr-6-mediawiki-bagostuff-adapter)

This library provides a PSR-6 cache pool adapter for MediaWiki's `BagOStuff` cache backend.

Requirements
------------

[](#requirements)

- PHP `^8.2`
- `psr/cache:^3.0`

Versions
--------

[](#versions)

- 0.1: Initial version, compatible with PSR/cache ^1.0.0
- 0.2: Updated to be compatible with PSR/cache ^3.0

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

[](#installation)

Install with Composer:

composer require addshore/psr-6-mediawiki-bagostuff-adapter

Usage
-----

[](#usage)

Wrap a MediaWiki `BagOStuff` instance with the PSR-6 pool:

```
use Addshore\Psr\Cache\MWBagOStuffAdapter\BagOStuffPsrCache;
use Wikimedia\ObjectCache\BagOStuff;

/** @var BagOStuff $bagOStuff */
$pool = new BagOStuffPsrCache( $bagOStuff );

$item = $pool->getItem( 'example-key' );
if ( !$item->isHit() ) {
    $item->set( 'value' );
    $pool->save( $item );
}
```

Development
-----------

[](#development)

Install dependencies:

composer install

Run checks:

- `composer lint` — syntax checks via `parallel-lint`
- `composer sniff` — coding standards via `phpcs`
- `composer phpunit` — unit tests
- `composer test` / `composer ci` — run all checks

Notes
-----

[](#notes)

- The historic `cache/integration-tests` suite is not currently suitable for PSR/cache 3 in this project context.
- This repository therefore uses local PHPUnit tests under `tests/unit`.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance90

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 64.3% 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 ~3371 days

Total

2

Last Release

51d ago

### Community

Maintainers

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

---

Top Contributors

[![addshore](https://avatars.githubusercontent.com/u/3308769?v=4)](https://github.com/addshore "addshore (9 commits)")[![ejegg](https://avatars.githubusercontent.com/u/1018606?v=4)](https://github.com/ejegg "ejegg (5 commits)")

---

Tags

mediawikicache

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/addshore-psr-6-mediawiki-badostuff-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/addshore-psr-6-mediawiki-badostuff-adapter/health.svg)](https://phpackages.com/packages/addshore-psr-6-mediawiki-badostuff-adapter)
```

###  Alternatives

[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[tedivm/stash

The place to keep your cache.

9614.9M128](/packages/tedivm-stash)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[laminas/laminas-cache

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

1077.3M154](/packages/laminas-laminas-cache)[cache/adapter-common

Common classes for PSR-6 adapters

11125.4M38](/packages/cache-adapter-common)[cache/tag-interop

Framework interoperable interfaces for tags

10626.0M13](/packages/cache-tag-interop)

PHPackages © 2026

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