PHPackages                             jankx/post-layout - 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. jankx/post-layout

ActiveLibrary

jankx/post-layout
=================

WordPress post and custom post type layout generator

1.0.0(10mo ago)2624[3 issues](https://github.com/jankx/post-layout/issues)3MITPHPCI failing

Since Jul 19Pushed 7mo agoCompare

[ Source](https://github.com/jankx/post-layout)[ Packagist](https://packagist.org/packages/jankx/post-layout)[ RSS](/packages/jankx-post-layout/feed)WikiDiscussions v2 Synced 4d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (3)

post-layout
===========

[](#post-layout)

WordPress post and custom post type layouts

Usage
=====

[](#usage)

To use Jankx post layout you must have a [Template engine](https://github.com/jankx/template-engine) before create post layout instance.

Create template Engine
----------------------

[](#create-template-engine)

Please choose your favorite template Engine. in this example I was use Plates engine

```
use Jankx\TemplateEngine\Engine\Plates;

$engine = Plates::create('your_engine_id');

// Set up directory include templates
$engine->setDefaultTemplateDir('full_path_to_default_templates_directory');
$engine->setDirectoryInTheme('directory_name_in_your_theme');

// Setup template engine Environment
$engine->setupEnvironment();

```

Create post layout instance.
----------------------------

[](#create-post-layout-instance)

Please create post layout instance before call `init` hook to ensure all features is working correctly.

```
use Jankx\PostLayout\PostLayoutManager;

$postLayoutManager = PostLayoutManager::createInstance($engine);

```

Create a post layout
--------------------

[](#create-a-post-layout)

Note `$wp_query` is a instance of [WP\_Query](https://developer.wordpress.org/reference/classes/wp_query/) of WordPress core. If `$wp_query` is not set, Post Layout will be use global `$wp_query` variable.

```
$cardLayout = $postLayoutManager->createLayout('card', $wp_query);

// Show post layout content to end user.
$cardLayout->render();

```

Layout supports
===============

[](#layout-supports)

- Card
- Grid
- List
- Carousel
- Tabs

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance41

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

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.

###  Release Activity

Cadence

Every ~45 days

Total

3

Last Release

210d ago

Major Versions

v1.x-dev → v2.x-dev2025-10-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a609a3b3a36dee9f36ef6f8d3b2b2dc91eebefc7644031e829e65bca4329799?d=identicon)[puleeno](/maintainers/puleeno)

---

Top Contributors

[![puleeno](https://avatars.githubusercontent.com/u/22538657?v=4)](https://github.com/puleeno "puleeno (283 commits)")

### Embed Badge

![Health badge](/badges/jankx-post-layout/health.svg)

```
[![Health](https://phpackages.com/badges/jankx-post-layout/health.svg)](https://phpackages.com/packages/jankx-post-layout)
```

PHPackages © 2026

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