installing symfony plugins

To install any plugin in symfony you have to use command line interface. Here is an example how to install symfony plugins (here we’re using ‘sfGuardPlugin‘ installation) using command line interface:

1) Linux :   ./symfony plugin:install sfGuardPlugin

2) Windows:  php symfony plugin:install sfGuardPlugin

on windows if the php command is not executing you can check my blog for the same.

One more thing, if you are not having pear installed you won’t be able to install a symfony plugin through command line interface. In this case there is one more way to install symfony plugin which is given as below:

Download the plugin and extract it to the /plugin directory (folder) of the project. Now just run the following command from the command line interface:

1) Linux: ./symfony plugin:publish-assets

2) Windows: php symfony plugin:publish-assets

but before running this command you have to enable that plugin in the applications setting.yml file as below:

enabled_modules:        [default, sfGuardGroup, sfGuardUser, sfGuardPermission]
here we have enabled the sfGuardGroup, sfGuardUser and sfGuardPermission plugins.

hope this will help you out. if you have any doubt or query please contact me.

2 Responses to “installing symfony plugins”

  1. free palm pre Says:

    Excellent article, bookmarked for future referrence


Leave a Reply