Not only am I a newbie to Sublime Text 2 but I'm about as competent in Python as well. That said, using the "infinite monkeys typing"-method of coding, I got this CodeSniffer plugin to work eventually:

import os
import sublime
import sublime_plugin

class PhpcsCommand(sublime_plugin.TextCommand):  
    def run(self, edit):  
    	folder_name, file_name = os.path.split(self.view.file_name())
     	self.view.window().run_command("exec", {'cmd': ['/usr/local/bin/phpcs',  '--standard=zend', \
     	'--tab-width=4', file_name]})
     	sublime.status_message("CodeSniffer executed on " + file_name)

Some help derived from the new API documentation

Of course, you should improve/mutilate/bow down in thanks/cast aspersions at this code as you see fit.