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

ActiveLibrary

jdwx/options
============

v0.1.1(1y ago)06PHP

Since Mar 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jdwx/options-php)[ Packagist](https://packagist.org/packages/jdwx/options)[ RSS](/packages/jdwx-options/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

options-php
===========

[](#options-php)

PHP module for managing arbitrary options

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

[](#installation)

You can require it directly with Composer:

```
composer require jdwx/options
```

Or download the source from GitHub:

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

[](#requirements)

This module requires PHP 8.3 or later.

Usage
-----

[](#usage)

This module is designed to provide a simple interface for specifying a list of options while preserving type safety, avoiding duplicates, etc. It leans heavily on the PHP class system to differentiate options.

This approach is most useful when there are a large number of possible options, especially if only a small number are relevant for any given context. It avoids the mental overhead associated with long lists of positional arguments, as well as the need to specify values for every options when only a few are needed.

A simple example of the intended usage is provided in the example directory. For a practical usage example, see the jdwx/formfield module.

Stability
---------

[](#stability)

This module is relatively new and has not been extensively deployed in production yet. The interface is mainly intended for internal use and should be considered fluid until at least v1.0.0 is reached.

History
-------

[](#history)

This module was refactored out of an existing codebase in early 2025.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance45

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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

423d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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