jmichaelward/wp-plugin-starter

A bootstrap library to help you quickly scaffold WordPress plugins.

Installs: 31

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:wordpress-plugin

0.1.1 2019-10-12 20:56 UTC

This package is auto-updated.

Last update: 2024-04-13 06:30:49 UTC


README

Development has just begun on this plugin; the goal is to create an intuitive starting point for beginning plugin development by providing some out-of-the-box scaffolding, and eliminating the need to perform manual string replacements on things like plugin names, class namespaces, author names, URLs, and more.

This example plugin requires the WP Plugin Starter Init Symfony Console command as a development dependency. Eventually, the idea is that this dependency will get triggered upon use of the composer create-project command, opening an interactive wizard that will ask you for your replacement terms.

Following confirmation of your entered terms, the replacement process will begin, and from there, you'll have a functioning plugin at your own namespace, and you can start building out its functionality.

Installation

To give it a try, you can run the following command:

composer create jmichaelward/wp-plugin-starter your-project-name.

This will create a directory named your-project-name from the location where the command was called, and will automatically download the required dependencies.

Once the plugin is installed, cd your-project-name, then run ./vendor/bin/wp-plugin-starter-init. As of right now, you will be asked simply for a namespace matching the Vendor\PackageName convention. After submitting this namespace, your main plugin file should get updated to your-project-name.php and the main plugin file and Plugin.php file will be updated to reflect the Vendor\PackageName value you entered.