PHPackages                             pollora/option - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. pollora/option

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

pollora/option
==============

A modern PHP package for WordPress option management with validation and immutable value objects

v1.1.0(1mo ago)066↓50%GPL-2.0-or-laterPHPPHP ^8.2CI passing

Since Jun 23Pushed 1mo agoCompare

[ Source](https://github.com/Pollora/option)[ Packagist](https://packagist.org/packages/pollora/option)[ RSS](/packages/pollora-option/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

Pollora Option
==============

[](#pollora-option)

A modern PHP package for WordPress option management with validation and immutable value objects.

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

[](#installation)

```
composer require pollora/option
```

Quick Start
-----------

[](#quick-start)

```
use Pollora\Option\Option;

// Get with default
$value = Option::get('site_title', 'My Site');

// Smart upsert (creates or updates)
Option::set('site_title', 'New Title');

// Check existence
if (Option::exists('api_key')) {
    Option::delete('api_key');
}

// Update existing
Option::update('posts_per_page', 20);
```

> **Pollora framework users:** When the framework is available, prefer the Laravel facade `Pollora\Support\Facades\Option` for full DI container support. A notice is emitted if you use the standalone class within the framework.

Documentation
-------------

[](#documentation)

See [docs/options.md](docs/options.md) for full documentation.

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

GPL-2.0-or-later

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Total

2

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b45e81c070e2ec0baf59b2a73a216632d76cdfb36c0ab168fd6d043b2c8fbc2?d=identicon)[pollora](/maintainers/pollora)

---

Top Contributors

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

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pollora-option/health.svg)

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

PHPackages © 2026

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