Ubuntu机器上的PHP复制粘贴检测器

标签 php ubuntu pear

我想在 Ubuntu 机器上安装 PHP Copy Paste Detector,为此我使用了该命令:-

    sudo pear config-set auto_discover 1

运行很困惑,但是当我尝试该命令时:-
   sudo pear install pear.phpunit.de/phpcpd

这是显示错误信息
错误是:-
   No releases available for package "pear.phpunit.de/phpcpd"
   install failed

我为此尝试了许多命令,例如:-
  pear config-set auto_discover 1
  pear install --force --alldeps pear.phpqatools.org/phpqatools
  sudo pear channel-discover pear.phpunit.de
  pear clear-cache  etc. but one help full for me.

最佳答案

phpunit 的作者 Sebastian Bergmann 前段时间关闭了 phpunit 的 pear channel ,使您的努力毫无用处。

您现在需要使用 .phar 或通过 composer 安装 phpcpd - 详细信息在 https://github.com/sebastianbergmann/phpcpd

关于Ubuntu机器上的PHP复制粘贴检测器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31965690/

相关文章:

c - ubuntu 日志文件中的时间戳

php - Pear Mail Queue - 日志/记录?

php - 在 PHP 中检测客户端语言环境的最简单方法

php - Firebird 程序不仅在 PDO 中执行

php - 从 MySQL 数据库预填充下拉列表和文本区域时出现问题

phploc 安装不适用于 ubuntu

php - 返回对 PHP 中对象的引用

php - 替换特殊模式之间的大写字母

ubuntu - 运行时无法加载私钥 "knife client list"

linux - 如何将 AWS CLI 升级到最新版本?