PHPackages                             marcosnunesmbs/wpcreator - 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. marcosnunesmbs/wpcreator

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

marcosnunesmbs/wpcreator
========================

A Wordpress CPT builder

1.1.1(2y ago)112MITPHPPHP ^8.0

Since May 30Pushed 1y ago2 watchersCompare

[ Source](https://github.com/marcosnunesmbs/wpcreator)[ Packagist](https://packagist.org/packages/marcosnunesmbs/wpcreator)[ RSS](/packages/marcosnunesmbs-wpcreator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (8)Used By (0)

[![](./wpcreator.png)](./wpcreator.png)
=======================================

[](#)

 [![Build Status](https://github.com/marcosnunesmbs/wpcreator/actions/workflows/php.yml/badge.svg)](https://github.com/marcosnunesmbs/wpcreator/actions) [![Latest Stable Version](https://camo.githubusercontent.com/7fe9456f330cb74803f9642e8f21825c4ceda7534d82e48d790ca798f7d4cfd5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6172636f736e756e65736d62732f777063726561746f722e7376673f7374796c653d666c61742d737175617265)](//packagist.org/packages/marcosnunesmbs/wpcreator) [![License](https://camo.githubusercontent.com/d40a6b14760d09cd137a58f180d65a27b86a6582381b9f389c3ef1996181a4c9/68747470733a2f2f706f7365722e707567782e6f72672f6d6172636f736e756e65736d62732f777063726561746f722f6c6963656e7365)](//packagist.org/packages/marcosnunesmbs/wpcreator)

Description
-----------

[](#description)

A simple php cli to create Wordpress Custom Post Types, Elementor's Widgets and another utilityes by yaml files.

Getting Started
---------------

[](#getting-started)

### Install

[](#install)

This CLI application is a Wordpress Custom Post Type Builder written in PHP and is installed using [Composer](https://getcomposer.org/):

```
composer global require marcosnunesmbs/wpcreator
```

### Usage

[](#usage)

#### Creating a Custom Post Type

[](#creating-a-custom-post-type)

1. Create a file *example.yaml* or *example.json* with basic informations:

```
name: Cars
labels:
  plural: Cars
  singular: Car
  menuName: Cars
  slug: cars
supports: title thumbnail
taxonomies:
  - name: Manufacturer
    singular: Manufacturer
    plural: Manufacturers
    slug: manufacturer
    hierarchical: 'true'
metaboxes:
  - name: form_car
    title: Form
    postmetas:
      - id: model_car
        label: Model
        type: text
      - id: old_car
        label: Old
        type: text
  - name: form2
    title: Form 2
    postmetas:
      - id: purchase_date
        label: Purchase Date
        type: date
```

```
{
    "name": "Cars",
    "labels": {
      "plural": "Cars",
      "singular": "Car",
      "menuName": "Cars"
    },
    "slug": "car",
    "supports": "title thumbnail",
    "taxonomies": [
      {
        "name": "Manufacturer",
        "singular": "Manufacturer",
        "plural": "Manufacturers",
        "slug": "manufacturer",
        "hierarchical": "true"
      }
    ],
    "metaboxes": [
      {
        "name": "form_car",
        "title": "Form",
        "postmetas": [
          {
            "id": "model_car",
            "label": "Model",
            "type": "text"
          },
          {
            "id": "old_car",
            "label": "Old",
            "type": "text"
          }
        ]
      },
      {
        "name": "form2",
        "title": "Form 2",
        "postmetas": [
          {
            "id": "purchase_date",
            "label": "Purchase Date",
            "type": "date"
          }
        ]
      }
    ]
  }

```

[For more examples](/examples/)

ParameterDescriptionnameThe name of CPT and FilepluralThe plural name of CPTsingularThe singular name of CPTmenuNameThe Menu name of CPTslugThe slug name of CPTsupportsThe list of supports separetade by spaces. See more arguments on [documentation](https://developer.wordpress.org/reference/functions/register_post_type/#supports).taxonomiesarray of taxonomiesnameTaxonomy Name (Singular)titleTitle of taxonomiepostmetasArray of postmetasidPostmeta idlabelPostmeta labeltypeType of postmeta input2. Execute the command ***create:cpt*** folowing the yaml path:

```
wpcreator create:cpt example.yaml
```

This command will create a folder named ***"output"*** with the file ***Cars.php*** which the basic Custom Post Type configuration customized.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94% 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 ~17 days

Total

5

Last Release

1010d ago

PHP version history (2 changes)1.0PHP ^7.4

1.0.2PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d90b3ed4a435135ee150721c3b9e27df2b230fcf141f54c687cb5be545dbf1b8?d=identicon)[marcosnunesmbs](/maintainers/marcosnunesmbs)

---

Top Contributors

[![marcosnunesmbs](https://avatars.githubusercontent.com/u/29044312?v=4)](https://github.com/marcosnunesmbs "marcosnunesmbs (47 commits)")[![ljsomm](https://avatars.githubusercontent.com/u/48564798?v=4)](https://github.com/ljsomm "ljsomm (2 commits)")[![hibachinho](https://avatars.githubusercontent.com/u/108425043?v=4)](https://github.com/hibachinho "hibachinho (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/marcosnunesmbs-wpcreator/health.svg)

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

###  Alternatives

[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

96374.6k23](/packages/friendsoftypo3-content-blocks)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[altis/local-server

Local Server module for Altis

18208.4k2](/packages/altis-local-server)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)

PHPackages © 2026

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