PHPackages                             estebanforge/hyperfields - 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. estebanforge/hyperfields

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

estebanforge/hyperfields
========================

HyperFields: A powerful custom field system for WordPress, providing metaboxes, options pages, and conditional logic.

1.1.11(1mo ago)3702GPL-2.0-or-laterPHPPHP &gt;=8.2

Since Sep 28Pushed 1mo agoCompare

[ Source](https://github.com/EstebanForge/HyperFields)[ Packagist](https://packagist.org/packages/estebanforge/hyperfields)[ RSS](/packages/estebanforge-hyperfields/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (23)Used By (2)

HyperFields
===========

[](#hyperfields)

HyperFields is a Composer library for WordPress custom fields.

It provides:

- options pages
- post/user/term field containers
- field validation/sanitization
- conditional logic
- JSON export/import for options with typed-node schema validation
- JSON export/import for pages/CPT content
- pluggable transfer-module orchestration
- transfer audit logging with a built-in admin logs screen

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

[](#installation)

```
composer require estebanforge/hyperfields
```

Load your project Composer autoloader:

```
require_once __DIR__ . '/vendor/autoload.php';
```

HyperFields bootstrap is registered via Composer `autoload.files`.

Basic usage
-----------

[](#basic-usage)

```
use HyperFields\Field;
use HyperFields\OptionsPage;

$page = OptionsPage::make('My Settings', 'my-settings');

$page->addField(
    Field::make('text', 'site_title', 'Site Title')
        ->setDefault('My Site')
        ->setRequired()
);

$page->register();
```

Helper functions
----------------

[](#helper-functions)

Procedural helpers are available with `hf_` prefix (for example: `hf_field`, `hf_get_field`, `hf_update_field`, `hf_option_page`).

Schema validation for JSON imports
----------------------------------

[](#schema-validation-for-json-imports)

JSON exports now include embedded type schemas alongside each value. When importing, HyperFields validates that values match their declared schemas, preventing malformed data or injection attacks.

See [`docs/transfer-and-content-export-import.md`](docs/transfer-and-content-export-import.md) for:

- Typed-node envelope format
- SchemaValidator API
- Building schema maps for exports
- Import validation flow
- Extending with custom format validators
- Transfer audit logging, retention controls, and logs UI hooks

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

[](#requirements)

- PHP 8.2+

Testing
-------

[](#testing)

HyperFields uses Pest v4.

```
composer run test
composer run test:unit
composer run test:integration
composer run test:coverage
composer run test:xdebug
```

License
-------

[](#license)

GPL-2.0-or-later

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance90

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Every ~9 days

Recently: every ~0 days

Total

21

Last Release

46d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.1

1.1.6PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/84d3033d510081ccdff8c9382b53dbbd84fb420838f944958f31092789a19032?d=identicon)[EstebanForge](/maintainers/EstebanForge)

---

Top Contributors

[![EstebanForge](https://avatars.githubusercontent.com/u/1696145?v=4)](https://github.com/EstebanForge "EstebanForge (50 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (3 commits)")

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/estebanforge-hyperfields/health.svg)

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

PHPackages © 2026

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