tmeister / wppb-cli
A CLI tool for WordPress plugin boilerplate
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 0
Type:command-line-interface
Requires
- php: ^8.1 || ^8.2 || ^8.3
- ext-zip: *
- laravel/prompts: ^0.1
- symfony/console: ^5.4 || ^6.0 || ^7.0
Requires (Dev)
- laravel/pint: ^1.17
README
Overview
WordPress Plugin Boilerplate CLI is a command-line interface tool designed to expedite the creation of new WordPress plugins using the WordPress Plugin Boilerplate structure from https://wppb.me. This tool automates the setup process, enabling developers to rapidly scaffold new plugins that adhere to best practices and maintain a standardized structure.
Key Features
- Generates new plugins based on the WordPress Plugin Boilerplate (https://github.com/DevinVinson/WordPress-Plugin-Boilerplate)
- Customizes plugins with specific details (name, description, author information, etc.)
- Adheres to WordPress coding standards and best practices
- Significantly reduces initial plugin setup time
Installation
To install the WordPress Plugin Boilerplate CLI, ensure that Composer is installed on your system. Then, install the package globally using the following command:
composer global require tmeister/wppb-cli
Usage
After installation, initiate the CLI tool by executing:
wppb new
This command will prompt you for various plugin details, including:
- Plugin Name
- Plugin Slug
- Plugin Description
- Author Name
- Author Email
- Author URL
Upon providing the necessary information, the tool will generate a new plugin structure in your current directory.
Configuration (Optional)
Create a configuration file named .wppb
in your home directory to set default values for the plugin creation process. Example:
author=Enrique Chavez
authorEmail=me@enriquechavez.co
authorUrl=https://enriquechavez.co
Tested On
- Mac
- Linux
- Windows
Contributing
We welcome contributions to this project. Please feel free to submit a Pull Request for any improvements or bug fixes.
License
This project is licensed under the GPL v2 or later.
Acknowledgments
This project is based on the WordPress Plugin Boilerplate Generator by Enrique Chavez (Tmeister).