Guardfile 
guard 'phpmd', 
:executable => './vendor/bin/phpmd', 
:rules => 'pmd-rules.xml' do 
watch(%r{.*.php$}) 
end 
 