Spread the love

PHPStorm is probably the best editor for Symfony projects. PHPStorm is not Free. However if you are a student visit https://www.jetbrains.com/student/ and download the complete PHPStorm editor for free. If you are not a student you can still download PHPStorm with 1 month of trial.

First thing is installing the Symfony plugin.

In preferences click the plugins option -> Browse Repositories and search for Symfony plugin.

Symfony Plugin | PHP Storm

Click on the Install Button and restart PHPStrom. After restarting go to the preferences menu and search for Symfony to find Symfony plugin item, then mark the Enable Plugin For this Project option. Remember that you will need to do this once for each project.  Also make sure that the urlGenerator.php and Translation Root Path are set to var directory as follows

Enable Symfony Plugin for PHPStorm

Now it is time to setup git with PHPStorm

Open up a terminal window and type

git init
git add .
git commit -m "First Draft" 

Hopefully your commit is more clever than mine!