[](https://flattr.com/submit/auto?user_id=linuslundahl&url=https://github.com/linuslundahl/PHP-Devel-Smeller&title=PHP Devel Smeller for Sublime Text 2&language=&tags=github&category=software)
Sublime Text 2 plugin that checks PHP files for "smelly" code such as die;
, var_dump();
, print_r();
etc.
This is NOT a syntax checker, use SublimeLinter for that. This is just a check for left behind development code that you usually don't want to commit to a production enviroment.
$ git clone [email protected]:linuslundahl/PHP-Devel-Smeller.git ~/Library/Application Support/Sublime Text 2/Packages
By default the plugin uses the built in Error Message in Sublime for smelly notifications, but you can also use Notification Center for less obtrusive notifications, this requires Terminal Notifier.
$ [sudo] gem install terminal-notifier
Then add:
{
"use_notification_center": 1
}
to [..]/Packages/User/PhpDevelSmeller.sublime-settings
to enable it.