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. [Caching](/categories/caching)
4. /
5. webxid/wp-post-wrapper

ActiveLibrary[Caching](/categories/caching)

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 1w 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 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

1554d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3855639?v=4)[Pavlo M.](/maintainers/webxid)[@webxid](https://github.com/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)
```

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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