Composer:如何检查当前composer.json文件的最低要求?

时间:2017-05-25 16:00:15

标签: composer-php

添加一个需要mongodb 3.0的作曲家包,因为mongodb 3.0需要php7,最后部署后生成的代码失败,我发现我当前的composer.json配置需要php7。如何运行命令并找出composer.json文件的最低要求?类似的东西:

composer requirements 
# or
composer requirements-dev

1 个答案:

答案 0 :(得分:1)

尝试

  <form class="required-form" action="php/mail_form.php" method="post">
  <ol class="forms">
      <li>
          <label for="name">Name</label>
          <input type="text" name="name" id="name" />
      </li>
      <li>
       <label for="email"><em class="required">*</em> Your Email</label>
       <input type="text" name="email" id="email" class="required" />
   </li>

   <li><label for="message">Message</label>   
       <textarea name="message" id="message"></textarea></li>
       <li class="buttons submit">
        <button type="submit">Send Message</button></li>
    </ol>
</form>

或简写

composer show --installed --tree