【问题标题】:Composer: How to check minimum requirements of the current composer.json file?Composer:如何检查当前 composer.json 文件的最低要求?
【发布时间】:2023-03-28 18:29:02
【问题描述】:

在添加了一个需要mongodb 3.0的composer包后,由于mongodb 3.0需要php7,最后在生产中部署失败后的代码,我发现我当前的composer.json配置需要php7。如何运行命令并找出我的 composer.json 文件的最低要求?比如:

composer requirements 
# or
composer requirements-dev

【问题讨论】:

    标签: composer-php


    【解决方案1】:

    试试

    composer show --installed --tree
    

    或者简写

    composer show -i -t
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-23
      • 2013-11-04
      • 2015-06-06
      • 2018-03-16
      • 1970-01-01
      • 2013-02-08
      • 2013-09-15
      • 1970-01-01
      相关资源
      最近更新 更多