我有 Ubuntu 14.04 + Sublime text 3 并安装了 phpcs 包
另外我已经安装phpcs
并php-cs-fixer
在我的系统上
从这个博客
我发现phpmd ( PHP Mess Detector ) 也是一个必需的库,因此按照官方 php md页面上的给定说明 使用替代方法从 github 存储库安装了phpmd 一切都已 完成。
:~/phpmd$ curl -s http://getcomposer.org/installer | php
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Composer successfully installed to: /home/keshav/phpmd/composer.phar
Use it: php composer.phar
但是现在当我在终端上写
phpmd /opt/lampp/htdocs/myproject, myfile.php
phpmd:找不到命令
主目录上有phpmd文件夹,所有内容都没有任何错误。
composer.json
根据github上的建议,我在项目文件夹中创建了关于核心 PHP 的本地项目。
请告诉我是什么意思
然后在你的项目中安装 Composer (或者直接下载 composer.phar):