PHPackages                             wpbp/generator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wpbp/generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wpbp/generator
==============

Generator of Wordpress Plugin Boilerplate Powered

1.3.9(2y ago)832.3kGPL-3.0-or-laterPHP &gt;=7.0

Since Sep 2Compare

[ Source](https://github.com/WPBP/generator)[ Packagist](https://packagist.org/packages/wpbp/generator)[ Docs](https://wpbp.github.io/)[ RSS](/packages/wpbp-generator/feed)WikiDiscussions Synced yesterday

READMEChangelog (10)Dependencies (4)Versions (46)Used By (0)

WPBP Generator
==============

[](#wpbp-generator)

[![License](https://camo.githubusercontent.com/1b0c7e4911720d0444c16a1ffd145a039f14a1a7305362ab51184f757a4dd6bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076332d626c75652e737667)](http://www.gnu.org/licenses/gpl-3.0)[![Downloads](https://camo.githubusercontent.com/6c273466d5078b00c4e60bac8151e36c4401940d5726898eb557b7a977ed12b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f777062702f67656e657261746f722e737667)](https://camo.githubusercontent.com/6c273466d5078b00c4e60bac8151e36c4401940d5726898eb557b7a977ed12b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f777062702f67656e657261746f722e737667) [![Codacy Badge](https://camo.githubusercontent.com/5ddd2deaf34a4afa7683f814d8663607fefc27a5511d86ed47c692e5894d166c/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3764656131396134333535313463636439303739663631346461636664613436)](https://www.codacy.com/gh/WPBP/generator?utm_source=github.com&utm_medium=referral&utm_content=WPBP/generator&utm_campaign=Badge_Grade)

This generator (based on PHP) parse the [WordPress Plugin Boilerplate Powered](https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered) and remove the stuff that you don't need.

Requirements
------------

[](#requirements)

Let's have a look on what you need and how to install it:

### Debian/Ubuntu

[](#debianubuntu)

`sudo apt install php php-zip php-mbstring php-yaml`

### Fedora/Centos

[](#fedoracentos)

`sudo dnf install php php-zip php-mbstring php-yaml`

### Mac OS

[](#mac-os)

`brew install pkg-config zlib``pecl install zip mbstring yaml`(source: )

Install
-------

[](#install)

From [here](https://github.com/WPBP/generator/releases) you can download the phar version or you can chose to install it with composer:

`composer global require wpbp/generator:dev-master`

Add this directory to your PATH in your ~/.bash\_profile (or ~/.bashrc) like this:

`export PATH=~/.composer/vendor/bin:$PATH`

Execute
-------

[](#execute)

`wpbp-generator --help` to get a list of commands

```
--dark
     Use a dark theme for console output.

--dev
     Download from the master branch (the development version).

--help
     Show the help page for this command.

--json
     Generate a wpbp.json file in the current folder. Suggested to use the WordPress plugin folder.

--no-download
     Do you want to execute composer and npm manually? This is your flag!

--verbose
     Verbose output. Because this can be helpful for debugging!

```

wpbp.json
---------

[](#wpbpjson)

This [file](https://github.com/WPBP/generator/blob/master/generator/wpbp.json) contains all the default variables that will be used to scaffold the boilerplate.

- *plugin*/*author* section includes [Plugin names for the WordPress plugin standard](https://developer.wordpress.org/plugins/plugin-basics/header-requirements/) but also the Comments section in every file
- *public-assets* section includes code for frontend that [enqueue CSS and JS file](https://developer.wordpress.org/plugins/javascript/enqueuing/#enqueue-script)
- *act-deact* section includes the code on [activation/deactivation of the plugin itself](https://developer.wordpress.org/plugins/plugin-basics/activation-deactivation-hooks/) and the [uninstall.php file](https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/#method-2-uninstall-php)
- *admin-assets* section includes code for backend that [enqueue CSS and JS file](https://developer.wordpress.org/plugins/javascript/enqueuing/#enqueue-script), `settings` values are for the Plugin setting page and admin for the rest of backend, `admin-page` add a new setting plugin page
- *ajax* section add code for [WordPress Ajax](https://codex.wordpress.org/AJAX_in_Plugins) system for [logged/non-logged users](https://developer.wordpress.org/plugins/javascript/enqueuing/#ajax-action)
- *git-repo* execute automatically `git init` in the folder created
- *block* adds the support for a custom block, *grumphp* adds the support for [GrumPHP](https://github.com/phpro/grumphp) and *phpstan* for [PHPStan](https://github.com/phpstan/phpstan)
- *phpcs/phpstan* enable predefined settings and rulesets for this tools
- *unit-test* adds the `tests` folder and `codeception.dist.yml` file with the various packages for composer about [Codeception](https://codeception.com/)
- *wpcli* adds the support in the plugin code for the [WP-CLI tool](https://wp-cli.org/)
- *language-files* adds the [po/mo files and the code to load custom languages files](https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/)
- *libraries* includes all the composer packages that will be downloaded with the related example code in the boilerplate itself, removing them will not add it
- *snippet* in the various subsections add specific code snippet integrated for the various needs in WordPress, removing them will not add it

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity71

Established project with proven stability

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

Recently: every ~96 days

Total

45

Last Release

876d ago

PHP version history (3 changes)1.0.0-betaPHP &gt;=5.5

1.1.1PHP &gt;=5.6

1.1.8PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/403283?v=4)[Daniele Scasciafratte](/maintainers/Mte90)[@Mte90](https://github.com/Mte90)

---

Tags

pluginwordpressgenerator

### Embed Badge

![Health badge](/badges/wpbp-generator/health.svg)

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

###  Alternatives

[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.7k](/packages/afragen-git-updater)[webdevstudios/cmb2-attached-posts

Custom field for CMB2 for creating post relationships.

13465.7k](/packages/webdevstudios-cmb2-attached-posts)[iceicetimmy/acf-post-type-selector

Post type selector for Advanced Custom Fields.

559.0k](/packages/iceicetimmy-acf-post-type-selector)

PHPackages © 2026

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