dongzhangnong2063 2019-02-05 16:36
浏览 91

如何知道我是否使用了作曲家依赖?

Here is my composer.json file, saved at /var/www/vhosts on production:

{
  "require": {
    "php": ">=7.2.0",
    "ext-curl": "*",
    "authorizenet/authorizenet": ">=1.8.8",
    "jms/serializer": "xsd2php-dev as 0.18.0",
    "google/apiclient": "^2.0",
    "nategood/httpful": "^0.2.20",
    "ezyang/htmlpurifier": "4.7.0",
    "pear-pear.horde.org/Horde_Imap_Client": "*",
    "ssilence/php-imap-client": "dev-master"
  },
  "repositories": [
    {
      "type": "pear",
      "url": "https://pear.horde.org"
    }
  ],
  "config": {
    "secure-http": false
  },
  "minimum-stability": "dev",
  "prefer-stable": true,
  "require-dev": {
    "phpstan/phpstan": "^0.9.2"
  }
}

All PHP code for this server (including cron and local scripts) is saved inside /var/www/vhosts.

I would like to remove dependencies from this file if I am not using them.

For each item ("ext-curl" ... "ssilence/php-imap-client"), how may I identify if I am using that package?

Back before autoloader, this was a simple task and I could grep for pear-pear.horde.org/Horde_Imap_Client, but now this might be more difficult.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 关于大棚监测的pcb板设计
    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用
    • ¥15 C++ yoloV5改写遇到的问题