PHPackages                             awesome9/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. awesome9/options

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

awesome9/options
================

WordPress option manager.

1.0.1(4y ago)018GPL-3.0-or-laterPHPPHP &gt;=5.6

Since Jan 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AwesomeNine/Options)[ Packagist](https://packagist.org/packages/awesome9/options)[ RSS](/packages/awesome9-options/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Options
=======

[](#options)

[![Awesome9](https://camo.githubusercontent.com/3c0c2d9b4a52297ff7faaf49e147ee8e6e96e0f435b798a6215c2e50ebc6bde3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417765736f6d652d392d627269676874677265656e)](https://awesome9.co)[![Latest Stable Version](https://camo.githubusercontent.com/1a11bc3b8266f315a7e62a7ca52f7149dc6d32f724431e9f3096f8b42ca38007/68747470733a2f2f706f7365722e707567782e6f72672f617765736f6d65392f6f7074696f6e732f762f737461626c65)](https://packagist.org/packages/awesome9/options)[![PHP from Packagist](https://camo.githubusercontent.com/fa6f47ad8aab7a3cf8ece585c6de02581066944a1746908d5aa59b74eecd107b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f617765736f6d65392f6f7074696f6e732e737667)](https://packagist.org/packages/awesome9/options)[![Total Downloads](https://camo.githubusercontent.com/7e62f6ed342b67c0019785670a9d10fac8e7cbd79c7d83723f09eb1f957e84a5/68747470733a2f2f706f7365722e707567782e6f72672f617765736f6d65392f6f7074696f6e732f646f776e6c6f616473)](https://packagist.org/packages/awesome9/options)[![License](https://camo.githubusercontent.com/47528544370d30ae25889e0276a12af0a9ec0bbb7439f005996a5a65d8edc560/68747470733a2f2f706f7365722e707567782e6f72672f617765736f6d65392f6f7074696f6e732f6c6963656e7365)](https://packagist.org/packages/awesome9/options)

 [![](https://camo.githubusercontent.com/3ac44ea3cea3cc9c352834ee35bd513ab5e137050ac2072c4144dd9d39c15c27/68747470733a2f2f696d672e69636f6e73382e636f6d2f6e6f6c616e2f3235362f73657276696365732e706e67)](https://camo.githubusercontent.com/3ac44ea3cea3cc9c352834ee35bd513ab5e137050ac2072c4144dd9d39c15c27/68747470733a2f2f696d672e69636f6e73382e636f6d2f6e6f6c616e2f3235362f73657276696365732e706e67)

📃 About Options
---------------

[](#-about-options)

This package provides ease of managing options within WordPress.

💾 Installation
--------------

[](#-installation)

```
composer require awesome9/options
```

🕹 Usage
-------

[](#-usage)

First, you need to register options for your theme/plugin.

```
Awesome9\Options\Options::get()
	->register(
		'awesome9',                 // Unique name which also can be used as function
		'_awesome9_plugin_options', // Option key for database
		// Defaults values.
		[
			'name' => 'Awesome9',
			'social' => [
				'facebook' => 'https://facebook.com',
				'twitter'  => 'https://twitter.com',
			]
		]
	);
```

On plugin activation hook you can use `install` method to add default option into system.

```
Awesome9\Options\Options::get()->install();
```

You can get value for an option you can use the option name to get value from it. You can also use id as path to get value.

```
Awesome9\Options\Options::get()->awesome9( 'name' ); // Awesome9
Awesome9\Options\Options::get()->awesome9( 'social.facebook' ); // https://facebook.com
```

You can update values from option temporary for session or permenantly.

```
// Temporary update for session.
Awesome9\Options\Options::get()->awesome9()->update( 'name', 'Awesome Nine' );

// Permenant update
Awesome9\Options\Options::get()->awesome9()->update( 'name', 'Awesome Nine', true );
```

You can remove values from option temporary for session or permenantly.

```
// Temporary remove for session.
Awesome9\Options\Options::get()->awesome9()->remove( 'name' );

// Permenant remove
Awesome9\Options\Options::get()->awesome9()->remove( 'name', true );
```

All the parameters remains the same as for the `JSON` class.

📖 Changelog
-----------

[](#-changelog)

[See the changelog file](./CHANGELOG.md)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~183 days

Total

2

Last Release

1773d ago

### Community

Maintainers

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

---

Top Contributors

[![meshakeeb](https://avatars.githubusercontent.com/u/1378876?v=4)](https://github.com/meshakeeb "meshakeeb (4 commits)")

### Embed Badge

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

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

###  Alternatives

[wenzhixin/bootstrap-table

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)

11.8k283.4k1](/packages/wenzhixin-bootstrap-table)[derekdowling/stubborn

Configurable call handler that is persistent against failures.

3615.7k](/packages/derekdowling-stubborn)[spatie/sidecar-shiki

Run Shiki highlighting with Sidecar

3610.2k](/packages/spatie-sidecar-shiki)

PHPackages © 2026

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