PHPackages                             gebruederheitz/wp-async-posts-provider - 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. gebruederheitz/wp-async-posts-provider

ActiveLibrary

gebruederheitz/wp-async-posts-provider
======================================

Helps you get your posts asynchronously to the frontend in your plugin or theme

v0.2.2(3y ago)0223[2 PRs](https://github.com/gebruederheitz/ghwapp/pulls)GPL-3.0-onlyPHPPHP ^7.3

Since Jun 24Pushed 3y ago2 watchersCompare

[ Source](https://github.com/gebruederheitz/ghwapp)[ Packagist](https://packagist.org/packages/gebruederheitz/wp-async-posts-provider)[ RSS](/packages/gebruederheitz-wp-async-posts-provider/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (10)Dependencies (5)Versions (16)Used By (0)

Wordpress Async Posts Provider
==============================

[](#wordpress-async-posts-provider)

Helps you get your posts asynchronously to the frontend in your plugin or theme

Provides a simple interface ideal for custom pagination especially on hybrid setups using both synchronous server-side rendering and asynchronous AJAX-powered loading of posts from a frontend script or framework using WP's own REST API.

Installation
============

[](#installation)

via composer:

```
> composer require gebruederheitz/wp-async-posts-provider
```

Usage
=====

[](#usage)

Using the container with default settings
-----------------------------------------

[](#using-the-container-with-default-settings)

Initialize the container (usually in your `functions.php`):

```
