Writing a plugin

From PHPDevShell

Jump to: navigation, search

PHPDevShell have a powerful and easy to use plugin based system. This modular system allows a developer to write his own plugin for PHPDevShell in a short amount of time and the minimum of fuss. Once this plugin is developed it can then be easily installed into PHPDevShell using PHPDevShell's own plugin manager.

From PHPDevShell 2.0.0 an easy to use XML based configuration system was also added. With this system the developer can create a simple XML based config file that will allow end users to easily install, upgrade and uninstall the plugin.

With the XML based file you have the possibility to perform the following "upgrade" modifications to your plugin without you having to write a single line of code:

  1. Add, Remove or Modify your plugin's menu's.
  2. Perform multiple SQL queries on your plugin's tables.
  3. Add, edit or remove Hook scripts.
  4. Change your plugin's settings.

Lets look at how a plugin folder and file structure looks.

Basic file structure of a plugin

Note: Please follow this link to download an example plugin if you did not download PHPDevShell with the included example plugin already.