library wp-plugin-skeleton
Wordpress Plugin Skeleton
mmdc/wp-plugin-skeleton
Wordpress Plugin Skeleton
- Monday, October 21, 2013
- by mmdc
- Repository
- 1 Watchers
- 0 Stars
- 11 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Wordpress Plugin Skeleton
Use this skelton to kickstart your Wordpress Plugin development., (*1)
It has a built-in Templating Engine (Twig) and a composer.json file to add some extra packages., (*2)
Install Composer
You need Composer to use this skeleton:, (*3)
http://getcomposer.org/doc/00-intro.md#installation, (*4)
Install Skeleton
-
Switch to your Wordpress Plugin folder in /wp-content/plugins/, (*5)
-
Use your installed composer to checkout this skeleton, (*6)
php composer.phar create-project mmdc/wp-plugin-skeleton [my-plugin-name], (*7)
or using system-wide installed composer, (*8)
composer create-project mmdc/wp-plugin-skeleton [my-plugin-name], (*9)
-
Happy coding!, (*10)
Usage
-
Activate the plugin in backend, (*11)
-
Use shortcodes (e.g. [mmdc_index_index]) in frontend to get some output, (*12)
Notes
Feel free to change the following:, (*13)
- 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