PHPackages                             nvoos/wordpress-adapter - 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. [Framework](/categories/framework)
4. /
5. nvoos/wordpress-adapter

ActiveWordpress-plugin[Framework](/categories/framework)

nvoos/wordpress-adapter
=======================

WordPress adapter implementations for the oOS Core engine.

01↑2900%PHP

Since Jun 7Pushed 2d agoCompare

[ Source](https://github.com/nvdigitalsolutions/nvoos-wordpress-adapter)[ Packagist](https://packagist.org/packages/nvoos/wordpress-adapter)[ RSS](/packages/nvoos-wordpress-adapter/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

WordPress Adapter for oOS Core
==============================

[](#wordpress-adapter-for-oos-core)

Purpose
-------

[](#purpose)

Concrete implementations of the 9 domain interfaces from `nvoos/core`, backed by WordPress APIs. Each adapter wraps one WordPress subsystem behind a framework-agnostic contract — same pattern as `nvoos/laravel-adapter` and `nvoos/craft-adapter`, using WordPress's procedural API layer.

All domain contracts are fully domain-owned — none extend PSR or Symfony interfaces.

Tier
----

[](#tier)

**Distribution**`nvoos/wordpress-adapter` Composer package (`type: wordpress-plugin`)**PHP target**7.4+**License**GPL-3.0-or-later**Dependencies**`nvoos/core ^1.0`, WordPress corePublic Surface
--------------

[](#public-surface)

AdapterImplementsWordPress APIs Wrapped`ErrorFactory``ErrorFactoryInterface``WP_Error``CacheStore``CacheStoreInterface` (domain-owned)`get_transient` / `set_transient`, `wp_cache_*``SettingsStore``SettingsStoreInterface``get_option` / `update_option``EventDispatcher``EventDispatcherInterface` (domain-owned)`do_action` / `apply_filters``HttpClient``HttpClientInterface` (domain-owned)`wp_remote_request``FileStore``FileStoreInterface``wp_insert_attachment`, `get_attached_file`, `wp_generate_attachment_metadata``QueueClient``QueueClientInterface`Action Scheduler (primary), WP-Cron (fallback)`AuthProvider``AuthProviderInterface``get_current_user_id`, `user_can`, `wp_verify_nonce``ContentStore``ContentStoreInterface``get_post`, `wp_insert_post`, `WP_Query`, `get_post_meta`, `wp_get_post_terms`Conventions
-----------

[](#conventions)

- One adapter per file, one WordPress subsystem per adapter.
- Adapter methods are thin wrappers — one WP function call per method.
- All WordPress function calls are prefixed with `\` (global namespace).
- Adapters do not contain business logic — they translate between domain types and WordPress types.
- PHP 7.4 compatible — no typed properties, no named arguments, no enums.

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

[](#installation)

```
composer require nvoos/wordpress-adapter
```

The package autoloads via PSR-4 from `src/` (namespace `Nvoos\WordPress\`). No service provider needed — WordPress plugins wire adapters manually in their bootstrap.

Configuration
-------------

[](#configuration)

Adapters are instantiated directly by the consuming plugin's bootstrap file. See [`includes/bootstrap/oos-bridge.php`](../../includes/bootstrap/oos-bridge.php) for the canonical wiring example used in this monorepo.

Testing
-------

[](#testing)

```
vendor/bin/phpunit tests/test-wp-options-store.php
vendor/bin/phpunit tests/test-wp-http-client.php
vendor/bin/phpunit tests/test-wp-content-store.php
```

Tests require a WordPress test environment (WP-Core test suite + PHPUnit Polyfills).

Also Load
---------

[](#also-load)

- [`lib/core/src/Domain/Contract/`](../core/src/Domain/Contract/) — the interfaces these implement
- [`lib/core/src/Domain/Entity/`](../core/src/Domain/Entity/) — value objects returned by these adapters
- [`lib/core/src/Domain/Error/`](../core/src/Domain/Error/) — typed domain exceptions these throw
- [`lib/wordpress-adapter/src/Adapter/README.md`](src/Adapter/README.md) — per-adapter details and neighbor map
- [`includes/bootstrap/oos-bridge.php`](../../includes/bootstrap/oos-bridge.php) — DI wiring that instantiates these adapters

> **Monorepo sync:** This directory is synced to `nvdigitalsolutions/nvoos-wordpress-adapter` via `.github/workflows/sync-nvoos-wordpress-adapter.yml` on push to `main` or `alpha-working`.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance65

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c615f1f9599eec7b223b63804f7bc3146f94340b37db80ab0c9ef20879f4696?d=identicon)[nvdigital](/maintainers/nvdigital)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/nvoos-wordpress-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/nvoos-wordpress-adapter/health.svg)](https://phpackages.com/packages/nvoos-wordpress-adapter)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M822](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[pinguo/php-msf

Pinguo Micro Service Framework For PHP

1.7k4.2k](/packages/pinguo-php-msf)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)

PHPackages © 2026

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