Packaging a plugin
There are three ways to include a plugin into our application:
Copying a plugin into the plugin folder
Using SVN externals to reference the plugin
Using the Symfony
plugin:installtask to download and install the plugin
SVN externals are great and recommended, but sometimes it is easier to distribute your plugin as a package. This is very simple as the sfTaskExtraPlugin plugin that we had installed earlier comes with a package task.
First, add any additional information to the LICENCE and README files in the alSignupPlugin root directory. You can also modify the package.xml.templ file as this is the default template used to generate the package.xml file. When you are happy, run the following command:
>symfony plugin:package --plugin-version="0.1.0" alSignupPlugin
You will now be asked a few further questions, so fill them in. The output of this is shown in the following screenshot:
