allegedwizard/wpgen 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

allegedwizard/wpgen

Composer 安装命令:

composer create-project allegedwizard/wpgen

包简介

A WordPress plugin generator and scaffolding tool

README 文档

README

Requirements

Installation

Windows

  1. Clone the repo
  2. Run 'composer install' in the repo root directory
  3. Add the repo directory to your system's PATH

Mac

Ensure composer is installed via:

brew install composer

Clone the repo, run composer install, and chmod the wpgen file so that it is executable.

git clone git@github.org:allegedwizard/wpgen.git
cd wpgen
composer install
chmod 755 wpgen

Create an alias for the wpgen executable by editing or creating ~/.bashrc and adding the following:

alias wpgen='/absolute/path/to/wpgen/wpgen' 

Then restart your terminal and run wpgen to verify successful installation.

Create Plugin

In order to use wpgen, first create a plugin.

Navigate to your WordPress plugins directory, then run:

wpgen create:plugin

This creates a basic plugin architecture with a namespace of your choice.

A wpgen.config.json file is created in the plugin root directory. This file is required for all component functionality. Do not delete it.

Once your base plugin is generated, go to the new plugin directory and run:

composer install

Then, run wpgen to get a list of commands.

** create: prefixed commands must run from the plugin root directory.

** component: prefixed commands must be run from the specific component directory.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固