mmdc / wp-plugin-skeleton
Wordpress Plugin Skeleton
Requires
- twig/twig: 1.14.*
This package is not auto-updated.
Last update: 2025-02-25 03:18:17 UTC
README
Use this skelton to kickstart your Wordpress Plugin development.
It has a built-in Templating Engine (Twig) and a composer.json file to add some extra packages.
Install Composer
You need Composer to use this skeleton:
http://getcomposer.org/doc/00-intro.md#installation
Install Skeleton
-
Switch to your Wordpress Plugin folder in /wp-content/plugins/
-
Use your installed composer to checkout this skeleton
php composer.phar create-project mmdc/wp-plugin-skeleton [my-plugin-name]
or using system-wide installed composer
composer create-project mmdc/wp-plugin-skeleton [my-plugin-name]
-
Happy coding!
Usage
-
Activate the plugin in backend
-
Use shortcodes (e.g. [mmdc_index_index]) in frontend to get some output
Notes
Feel free to change the following:
- Name of the main plugin file:
my_plugin.php
- My default namespace
MMDC
. You could just do a Find&Replace on MMDC.
ToDo
- Use
post-create-project-cmd
event to rename namespace on installation