【问题标题】:How to figure out what will be inside the "require" or "require-dev" portion of a composer file?如何找出作曲家文件的“require”或“require-dev”部分中的内容?
【发布时间】:2015-10-14 11:33:39
【问题描述】:

我正在编写一个作曲家文件。有一些依赖关系。我很好奇人们如何找出依赖项的名称。例如,其中一个依赖项是 ext-imagick。我知道这一点是因为我的项目的一个依赖项是 php-imagick 我在 SO 中问过,有人回答说它应该是 ext-imagick。

他是怎么想出来的?有什么图书馆吗?

【问题讨论】:

    标签: php dependencies composer-php dependency-management


    【解决方案1】:

    没错,PHP imagick 扩展需求定义为ext-imagick。

    作曲家手册covers ext syntax。

    您可以根据自己的 PHP 安装或 PHP manual 检查扩展名。请注意,扩展页面 url 包含它们的标识符,例如 http://php.net/manual/en/ref.pdo-mysql.php 在 Composer 中应称为 ext-pdo_mysql(标识符中的连字符替换为下划线)。

    【讨论】:

      猜你喜欢
      • 2018-03-06
      • 2019-12-25
      • 2013-10-07
      • 2019-11-27
      • 1970-01-01
      • 2017-04-20
      • 2018-12-23
      • 2013-05-16
      • 2018-12-11
      相关资源
      最近更新 更多