PHPackages                             coderjerk/plaiceholder - 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. coderjerk/plaiceholder

ActiveLibrary

coderjerk/plaiceholder
======================

Generate placeholder content for WordPress using WP-CLI and OpenAI

v1.0.2(1y ago)059MITPHPPHP &gt;=7.4

Since Apr 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/danieldevine/plaiceholder)[ Packagist](https://packagist.org/packages/coderjerk/plaiceholder)[ RSS](/packages/coderjerk-plaiceholder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Plaiceholder 🐟
==============

[](#plaiceholder-)

**Generate AI-powered placeholder content in WordPress via WP-CLI**, using OpenAI's API. Designed for developers who want to seed realistic enough but disposable content during theme/plugin development — with cleanup built-in.

---

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

[](#installation)

```
composer require coderjerk/plaiceholder

```

Ensure Composer autoloading is enabled in your project:

```
require_once ABSPATH . 'vendor/autoload.php';
```

Define your API key in `wp-config.php` or pass it via CLI:

```
define('OPENAI_API_KEY', 'sk-your-openai-key');
```

---

Commands
--------

[](#commands)

### `wp plaiceholder create`

[](#wp-plaiceholder-create)

Generate placeholder content using GPT.

```
wp plaiceholder create --post_type=book --count=5 --topic="Chris De Burgh is a significant figure in world history"

```

#### Options:

[](#options)

FlagDescription`--post_type`(Optional) Post type to create. Default: `post``--count`(Optional) Number of posts to create. Default: `5``--topic`(Required) The content topic prompt`--api_key`(Optional) OpenAI API key (or use `OPENAI_API_KEY`)Each post is:

- AI-generated from the given topic
- Assigned a random post date (within last 6 months)
- Given a random image from your media library (if available)
- Tagged internally with `_plaiceholder_generated` meta key

---

### `wp plaiceholder cleanup`

[](#wp-plaiceholder-cleanup)

Deletes all posts generated by this tool.

```
wp plaiceholder cleanup

```

This removes any post with the `_plaiceholder_generated` meta flag.

---

The Rules
---------

[](#the-rules)

This tool is for local/dev/staging content only. All generated posts are tagged so they can be easily identified and deleted. Do not use this to generate SEO spam or misleading content. By using this library you agree to not bulk generate AI trash on the internet.

---

DeBurghWare
-----------

[](#deburghware)

This software is DeBurghWare, if you use it on a client project you must email  with the name of your favourite Chris De Burgh song and why.

Examples
--------

[](#examples)

```
wp plaiceholder create --post_type=report --count=10 --topic="The many Moods of Chris De Burgh"

wp plaiceholder cleanup
# Done developing? Clean up the grotesque AI generated mess.

```

---

Troubleshooting
---------------

[](#troubleshooting)

- Getting `You exceeded your current quota`? Check your usage at .
- If posts aren't generating, use `--api_key=` explicitly or debug with `WP_CLI::log()` inside the class.

---

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance46

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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 ~0 days

Total

3

Last Release

409d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57a1b0f82fadf970d1068cd30fd72f6e85ea2abe3fc9e3ff082b32381e42db8f?d=identicon)[Coderjerk](/maintainers/Coderjerk)

---

Top Contributors

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

---

Tags

openaiwordpresswp-cli

### Embed Badge

![Health badge](/badges/coderjerk-plaiceholder/health.svg)

```
[![Health](https://phpackages.com/badges/coderjerk-plaiceholder/health.svg)](https://phpackages.com/packages/coderjerk-plaiceholder)
```

PHPackages © 2026

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