PHPackages                             webxid/wp-post-wrapper - 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. webxid/wp-post-wrapper

ActiveLibrary

webxid/wp-post-wrapper
======================

The lib help to wrap WP instances and to cache already collected data

v1.0.0(4y ago)06MITPHP

Since May 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/webxid/wp-post-wrapper)[ Packagist](https://packagist.org/packages/webxid/wp-post-wrapper)[ RSS](/packages/webxid-wp-post-wrapper/feed)WikiDiscussions master Synced 1mo ago

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

The lib help to wrap WP instances and to cache already collected data. Also, you can implement your own method for a post instance

Install
=======

[](#install)

Run `composer require webxid/wp-post-wrapper`

How to use
==========

[](#how-to-use)

E.g. we have the next implementation: [PageBlocks](./examples/PageBlocks.php) of a posts type and the next [SimpleBlock](./examples/SimpleBlock.php) of a post and the next [Category](./examples/Category.php) of a post taxonomy

Factory method
--------------

[](#factory-method)

You can implement a separate class for a specific post and handle custom fields as the post instance properties

Get data
--------

[](#get-data)

### To get a posts list

[](#to-get-a-posts-list)

```
use WebXID\WpPostWrapper\Example\PageBlocks
use WebXID\WpPostWrapper\Example\SimpleBlock;

foreach(PageBlocks::buildPostsList() $key => $post) {
    /** @var SimpleBlock $post */

    // do some code
}
```

### To build a single post instance

[](#to-build-a-single-post-instance)

```
use WebXID\WpPostWrapper\Example\PageBlocks
use WebXID\WpPostWrapper\Example\SimpleBlock;

/** @var SimpleBlock $post */
$post = PageBlocks::itemFactory(get_post());
```

### To build a taxonomy instance

[](#to-build-a-taxonomy-instance)

```
use WebXID\WpPostWrapper\Example\Category
use WebXID\WpPostWrapper\Example\SimpleBlock;

/** @var Category $post */
$category = Category::factory(get_queried_object());
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1463d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/webxid-wp-post-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/webxid-wp-post-wrapper/health.svg)](https://phpackages.com/packages/webxid-wp-post-wrapper)
```

PHPackages © 2026

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