Regarding my development environment, this is the first year that I’ve made drastic changes to my toolset in several years (once I find things I really like, I tend to stick with them).
Case in point, in the last few months alone:
- I’ve moved to Atom
- I’ve found a set of packages that I really like
- I use Pressmatic (rather than MAMP)
- I use WP-CLI more than I ever have before
And with these changes come some other necessary configuration changes. Specifically, I still use PHP CodeSniffer but, out of necessity, its setup and configuration have changed.
PHP CodeSniffer with Pressmatic and Atom
Assuming that you’re using PHP CodeSniffer with Pressmatic and Atom, the following steps will walk you through what you need to do to update your environment’s configuration.
1. Install Composer
Before you install PHP CodeSniffer, make sure that you have Composer installed.
Ideally, it should be available globally on your system. To do this:
$ php installeron the command-line.
$ mv composer.phar /usr/local/bin/composerand this will move Composer to a globally accessible location on your