News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Phil Sturgeon:
PHP Static Analysis in Sublime Text
August 21, 2013 @ 09:49:59

Phil Sturgeon has put together a new post for his site showing you how to set up static analysis of PHP code in the Sublime Text editor using various tools.

Coding Standards have been around for the longest time and recently they're starting to become more widespread in PHP. While learning Python I really enjoyed how Sublime Text 2 would shout at me for using too many empty lines, using tabs instead of spaces and even things like declaring unused local variables, importing modules that were never used, etc. This was pretty cool, and I was soon writing beautiful Python code without any concern over which way things should be done. I've been doing this with PHP for the last year, but trying to get a new-hire going with this stuff was hard. We smashed through it taking notes so now I've written it up for you guys.

He's broken it down into a few different steps (three of them) to get things like the right version of PHP, PHPMD and PHP_CodeSniffer installed and configured. There's a few config settings you'll need to change in Sublime to get things working correctly, but it's a relatively painless setup.

0 comments voice your opinion now!
static code analysis phpmd phpcs sublimetext install configure

Link: http://philsturgeon.co.uk/blog/2013/08/php-static-analysis-in-sublime-text

blog comments powered by Disqus

Similar Posts

Carl Vuorinen: Installing SonarQube with Jenkins integration for a PHP project

NetTuts.com: Refactoring Legacy Code: Part 7 - Identifying the Presentation Layer

PeterGuy.com: How to install PHP 5.x on Windows Server 2003 with IIS 6

Blue Parabola Blog: Magento Feature Analysis Series, Part 3: Catalog Browsing Offering

Padraic Brady's Blog: Installing PHP 5.3.1 On Ubuntu 9.10 (Karmic Koala) With aptitude/apt-get


Community Events





Don't see your event here?
Let us know!


podcast release language zendserver threedevsandamaybe series development list community bugfix symfony conference tips framework api deployment code laravel introduction interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework