标签:添加php psr work 部署 安装部署 absolute standard efault global
composer global require "squizlabs/php_codesniffer=*"
## 获取phpmd安装路径 composer global config bin-dir --absolute ## 配置md路径 File -> Default Setting -> Languages & Frameworks -> PHP -> Code Sniffer -> ... -> 添加phpcs路径 -> Apply ## 设置规则 File -> Default Setting -> Editor -> Inspections -> PHP -> PHP Code Sniffer validation (打上勾)-> Coding standard -> PSR2 -> Apply
composer global require "phpmd/phpmd"
## 获取phpmd安装路径 composer global config bin-dir --absolute ## 配置md路径 File -> Default Setting -> Languages & Frameworks -> PHP -> Mess Detector -> ... -> 添加phpmd路径 -> Apply ## 设置规则 File -> Default Setting -> Editor -> Inspections -> PHP -> PHP Mess Detector validation (打上勾)-> 添加额外规则(见上面规则说明) -> Apply
标签:添加php psr work 部署 安装部署 absolute standard efault global
原文地址:https://www.cnblogs.com/cxscode/p/9319759.html