eugenealegiojo / wp-plugin-generator
A WordPress plugin boilerplate generator.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/eugenealegiojo/wp-plugin-generator
Requires
- php: ^7.4 || ^8.0
README
A composer package that can generate basic WordPress plugin with PSR-4 autoloading.
Usage
-
Navigate to your project folder. For example: wp-content/plugins/my-new-plugin
-
Add or generate a composer.json file.
-
Run:
composer require eugenealegiojo/wp-plugin-generator -
Add the following code to your composer.json file:
"scripts": { "post-install-cmd": "php vendor/eugenealegiojo/wp-plugin-generator/wp-plugin-generator.php" }, -
Run:
composer install -
Follow the prompts in the terminal to add your plugin info, then activate your plugin in the WordPress admin.