atom-beautify 安装 php-cs-fixer 和 phpcbf
最近装了atom-beautify 插件,结果格式化php脚本时候报错”phpcbf”未安装
通过Composer (Globally)
To install PHP CS Fixer, install Composer and issue the following command:
$ composer global require friendsofphp/php-cs-fixer
Please be aware that before v1.12 package name was different:
$ composer global require fabpot/php-cs-fixer
修改~/.bashrc
,加一行