PHP-CS-Fixer -- PHP 代码格式化工具

GitHub:https://github.com/khs1994-docker/php-demo/blob/master/.php_cs

1
2
3
4
5
$ curl -L https://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -o php-cs-fixer

$ sudo mv php-cs-fixer /usr/local/bin

$ sudo chmod +x /usr/local/bin/php-cs-fixer

Edit .php_cs

1
$ php-cs-fixer fix
khs1994 wechat
微信扫码赞赏我的文章
0%