Posts tagged "phpstorm"

Configure Xdebug and PhpStorm for a Vagrant project in 5 minutes

Warning: this article concerns php5 version. If your PHP version is different, replace php5 by php/X.Y in paths (X.Y is your PHP version) and phpX.Y in command. For example : sudo apt-get install php5-xdebug becomes sudo apt-get install php5.6-xdebug /etc/php5/mods-available/xdebug.ini becomes /etc/php/5.6/mods-available/xdebug.ini I love debuggers. They allow me to understand deep down in my code why… Continue reading

Easily comply with Symfony2 coding style using CodeSniffer and PhpStorm Code Inspection

The goal of this article is to implement Symfony2 coding style in your PhpStorm editor. This will take you 5 minutes to configure your workspace. Symfony2 CodeSniffer installation You can follow this steps to install the Symfony2 standard CodeSniffer using Composer. Install phpcs: composer global require “squizlabs/php_codesniffer=1.*” You can follow the PHP_CodeSniffer documentation to include it in… Continue reading