PHPackages                             wpsmith/datastore - 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. wpsmith/datastore

ActiveLibrary[Caching](/categories/caching)

wpsmith/datastore
=================

An object oriented library for dealing with WordPress options and caching.

012PHPCI failing

Since Jun 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wpsmith/DataStore)[ Packagist](https://packagist.org/packages/wpsmith/datastore)[ RSS](/packages/wpsmith-datastore/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

WordPress Data Store
====================

[](#wordpress-data-store)

[![Build Status](https://camo.githubusercontent.com/f0055b578873e977c7738f9cdfa6dcd6bff5a6e1e4f60b40408992e620a60c2d/68747470733a2f2f7472617669732d63692e6f72672f7770736d6974682f4461746153746f72652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wpsmith/DataStore)[![Latest Stable Version](https://camo.githubusercontent.com/6aaed35e8a82621cafc9eed99b100c36b2e234ac1204c7095e0d610f7b922434/68747470733a2f2f706f7365722e707567782e6f72672f7770736d6974682f4461746153746f72652f762f737461626c65)](https://packagist.org/packages/wpsmith/DataStore)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ad81f7f721eecdb1f383b86215b77d35d73fe5cf2e098e824f2dc8c00d9aa437/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7770736d6974682f4461746153746f72652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wpsmith/DataStore/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/24b0247f870a09ec81ede0c58312a1052e38f1aed84a20ce385cbd94ac6fec05/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7770736d6974682f4461746153746f72652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wpsmith/DataStore/?branch=master)[![License](https://camo.githubusercontent.com/f5828cde837939b7f2020fa1137a898c969aef4985df90ea2aafeebb1c1dba23/68747470733a2f2f706f7365722e707567782e6f72672f7770736d6974682f4461746153746f72652f6c6963656e7365)](https://packagist.org/packages/wpsmith/DataStore)

An object oriented library for dealing with WordPress options and caching.

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

[](#requirements)

- PHP 7.2.0 or above
- WordPress 4.4 or higher (for transient keys longer than 64 characters).

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

[](#installation)

The best way to use this package is through Composer:

```
$ composer require wpsmith/DataStore
```

Credits
-------

[](#credits)

Heavily built upon [WordPress Data Storage](https://github.com/mundschenk-at/wp-data-storage).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/46adebc3eebe7494dba592e75ac8f8572222050648b0283515b4a5896648d846?d=identicon)[wpsmith](/maintainers/wpsmith)

---

Top Contributors

[![wpsmith](https://avatars.githubusercontent.com/u/817366?v=4)](https://github.com/wpsmith "wpsmith (5 commits)")[![wpsmithtwc](https://avatars.githubusercontent.com/u/15801496?v=4)](https://github.com/wpsmithtwc "wpsmithtwc (1 commits)")

### Embed Badge

![Health badge](/badges/wpsmith-datastore/health.svg)

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

###  Alternatives

[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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