Plugin skeleton generator
From MoodleDocs
Plugin skeleton generator | |
---|---|
Type | tool |
Set | N/A |
Downloads | https://github.com/mudrd8mz/moodle-tool_pluginskel |
Issues | https://github.com/mudrd8mz/moodle-tool_pluginskel |
Discussion | https://github.com/mudrd8mz/moodle-tool_pluginskel |
Maintainer(s) | Alexandru Elisei, David Mudrák |
Generate plugin skeleton
The plugin will generate the skeleton files needed for a specific plugin type. The full functionality of the plugin can be accessed either via a web interface or the command line script.
To generate a skeleton plugin via the web interface:
- Proceed to Administration > Site administration > Development > Generate plugin skeleton
- Fill in the various plugin features then click on the "Download plugin skeleton button"
To generate the plugin skeleton by using the comand line interface:
- Create a recipe file in the YAML format, either by writing it from scratch or by editing the template recipe located at "cli/example.yaml" (recommended)
- Invoke the command line script at "cli/generate.php":
php cli/generate.php --recipe=recipe.yaml