PHPCS Installation
Composer global require "squizlabs/php_codesniffer=*"
Configuration (Phpstorm)
# # Get PHPMD installation path Composer Global Config Bin-dir--absolute## configuration md path file, Default Setting, Languages & Framework ---PHP---Code Sniffer--- add phpcs path, apply## settings rules, file, Default Setting, Editor-&G T Inspections PHP --PHP Code Sniffer Validation (tick)--Coding standard, PSR2--Apply
PHPMD rules
- Download this project
- Files:/overview/php/dev/rule/phpmd/ruleset.xml
Installation
Composer global require "PHPMD/PHPMD"
Configuration (Phpstorm)
# # Get PHPMD installation path Composer Global Config Bin-dir--absolute## configuration md path file, Default Setting, Languages & Framework Detector---Mess, PHP---- add PHPMD path, apply## setting rules, file---default Setting, Editor-& Gt Inspections PHP ---PHP Mess Detector Validation (tick) Add additional rules (see the rules above), Apply
Phpcs,phpmd,phan Installation Deployment