PHPackages                             wp-media/options - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wp-media/options

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wp-media/options
================

Options Handler for WordPress Options API

v4.1(5mo ago)123GPL-2.0+PHPPHP &gt;= 7.4

Since Jan 23Pushed 5mo ago8 watchersCompare

[ Source](https://github.com/wp-media/module-options)[ Packagist](https://packagist.org/packages/wp-media/options)[ Docs](https://github.com/wp-media/options)[ RSS](/packages/wp-media-options/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (3)Dependencies (10)Versions (5)Used By (3)

Option Package
==============

[](#option-package)

This package is a wrapper to make it easier to work with the WordPress Options API.

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

[](#installation)

Using composer:

`composer require wp-media/options`

Description
-----------

[](#description)

This package contains the following:

- **OptionsInterface**: Interface defining the mandatory methods to implement
- **AbstractOptions**: Abstract class implementing `OptionsInterface`, with get/set/delete abstract methods
- **Options**: Class extending `AbstractOptions` for single site options
- **SiteOptions**: Class extending `AbstractOptions` for multisite options
- **OptionArray**: Class to manage array data coming from an option

Usage Examples
--------------

[](#usage-examples)

### For single site option

[](#for-single-site-option)

```
use WPMedia\Options;

$option = new Options( 'wp_media_' ); // optional prefix

$option->get( 'setting' );
```

### For multisite option

[](#for-multisite-option)

```
use WPMedia\SiteOptions;

$option = new SiteOptions( 'wp_media_' ); // optional prefix

$option->get( 'setting' );
```

### For option containing an array

[](#for-option-containing-an-array)

```
use WPMedia\Options;
use WPMedia\OptionArray;

$option = new Options( 'wp_media_' ); // optional prefix

$data = new OptionArray( $option->get( 'setting' ), 'wpmedia' );

$data->get( 'setting_key' );
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance70

Regular maintenance activity

Popularity4

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~1067 days

Total

3

Last Release

172d ago

Major Versions

3.0 → v4.02021-06-18

PHP version history (3 changes)3.0PHP &gt;=5.6.0

v4.0PHP &gt;= 7

v4.1PHP &gt;= 7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/5564218f7cd2ccf4542a09b7c5436e61e6b370c97fb3b04db1c5bbc0cc67e3c1?d=identicon)[wpmedia](/maintainers/wpmedia)

---

Top Contributors

[![hellofromtonya](https://avatars.githubusercontent.com/u/7284611?v=4)](https://github.com/hellofromtonya "hellofromtonya (1 commits)")[![remyperona](https://avatars.githubusercontent.com/u/3465180?v=4)](https://github.com/remyperona "remyperona (1 commits)")

---

Tags

wordpress

### Embed Badge

![Health badge](/badges/wp-media-options/health.svg)

```
[![Health](https://phpackages.com/badges/wp-media-options/health.svg)](https://phpackages.com/packages/wp-media-options)
```

###  Alternatives

[alkoumi/laravel-hijri-date

Laravel package to Convert laravel date to our Amazing 💝 Hjri date {ummul qura and vice versa} . to look like \[ الخميس ، ٢٢ ربيع الآخر ، ١٤٤١ - ٠٧:٤٩ مساءً\]

109166.2k2](/packages/alkoumi-laravel-hijri-date)[uspdev/replicado

Classes PHP que consome dados do Replicado USP

136.2k7](/packages/uspdev-replicado)

PHPackages © 2026

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