<legend id='IkmN4'><style id='IkmN4'><dir id='IkmN4'><q id='IkmN4'></q></dir></style></legend>

<i id='IkmN4'><tr id='IkmN4'><dt id='IkmN4'><q id='IkmN4'><span id='IkmN4'><b id='IkmN4'><form id='IkmN4'><ins id='IkmN4'></ins><ul id='IkmN4'></ul><sub id='IkmN4'></sub></form><legend id='IkmN4'></legend><bdo id='IkmN4'><pre id='IkmN4'><center id='IkmN4'></center></pre></bdo></b><th id='IkmN4'></th></span></q></dt></tr></i><div id='IkmN4'><tfoot id='IkmN4'></tfoot><dl id='IkmN4'><fieldset id='IkmN4'></fieldset></dl></div>
        <bdo id='IkmN4'></bdo><ul id='IkmN4'></ul>
    1. <small id='IkmN4'></small><noframes id='IkmN4'>

      1. <tfoot id='IkmN4'></tfoot>

        如何使用 composer 安装 Zend Framework 2 Tool

        How to install Zend Framework 2 Tool with composer(如何使用 composer 安装 Zend Framework 2 Tool)

        <small id='r44Ip'></small><noframes id='r44Ip'>

            <i id='r44Ip'><tr id='r44Ip'><dt id='r44Ip'><q id='r44Ip'><span id='r44Ip'><b id='r44Ip'><form id='r44Ip'><ins id='r44Ip'></ins><ul id='r44Ip'></ul><sub id='r44Ip'></sub></form><legend id='r44Ip'></legend><bdo id='r44Ip'><pre id='r44Ip'><center id='r44Ip'></center></pre></bdo></b><th id='r44Ip'></th></span></q></dt></tr></i><div id='r44Ip'><tfoot id='r44Ip'></tfoot><dl id='r44Ip'><fieldset id='r44Ip'></fieldset></dl></div>
            <tfoot id='r44Ip'></tfoot>

                  <tbody id='r44Ip'></tbody>

                <legend id='r44Ip'><style id='r44Ip'><dir id='r44Ip'><q id='r44Ip'></q></dir></style></legend>
                  <bdo id='r44Ip'></bdo><ul id='r44Ip'></ul>
                • 本文介绍了如何使用 composer 安装 Zend Framework 2 Tool的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  当使用 composer 引导时,我不知道如何运行 zf.php(Zend Framework 2 工具).

                  I can't figure out how to run zf.php (Zend Framework 2 Tool) when bootstrapped with composer.

                  首先我根据文档引导 composer 和 zftool:

                  First I bootstrap composer and zftool according to the documentation:

                  $ mkdir tmp && cd tmp
                  $ curl -s https://getcomposer.org/installer | php
                  $ ./composer.phar require zendframework/zftool:dev-master
                  

                  到目前为止,这工作正常.

                  This works fine so far.

                  但是当我尝试运行 zf.php 时,我得到了错误:

                  But when I try to run zf.php, I get errors:

                  $ vendor/zendframework/zftool/zf.php 
                  PHP Warning:  require_once(/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.php): failed to open stream: No such file or directory in /Users/seb/tmp/vendor/zendframework/zftool/zf.php on line 13
                  
                  Warning: require_once(/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.php): failed to open stream: No such file or directory in /Users/seb/tmp/vendor/zendframework/zftool/zf.php on line 13
                  PHP Fatal error:  require_once(): Failed opening required '/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.php' (include_path='.:/opt/local/lib/php') in /Users/seb/tmp/vendor/zendframework/zftool/zf.php on line 13
                  
                  Fatal error: require_once(): Failed opening required '/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.php' (include_path='.:/opt/local/lib/php') in /Users/seb/tmp/vendor/zendframework/zftool/zf.php on line 13
                  

                  我做错了什么?我在 Mac 上使用 PHP 5.3.21.

                  What am I doing wrong? I'm using PHP 5.3.21 on Mac.

                  我还在我的 Debian VServer 上使用 PHP 5.4 对其进行了测试,同样的错误:(

                  I also tested it on my Debian VServer with PHP 5.4, same error :(

                  推荐答案

                  你应该将 zf.php 复制到你的根目录并从那里运行它.

                  You should copy zf.php into your root directory and run it from there.

                  $ mkdir tmp && cd tmp
                  $ curl -s https://getcomposer.org/installer | php
                  $ ./composer.phar require zendframework/zftool:dev-master
                  $ cp vendor/zendframework/zftool/zf.php .
                  $ php zf.php
                  

                  这篇关于如何使用 composer 安装 Zend Framework 2 Tool的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Converting between timezones in PHP(在 PHP 中的时区之间转换)
                  PHP - strtotime, specify timezone(PHP - strtotime,指定时区)
                  Get current date, given a timezone in PHP?(获取当前日期,给定 PHP 中的时区?)
                  List of US Time Zones for PHP to use?(PHP 使用的美国时区列表?)
                  How to detect Ambiguous and Invalid DateTime in PHP?(如何在 PHP 中检测不明确和无效的 DateTime?)
                  How to update timezonedb in PHP (updating timezones info)?(如何在 PHP 中更新 timezonedb(更新时区信息)?)
                  <tfoot id='V77Ty'></tfoot>
                    <bdo id='V77Ty'></bdo><ul id='V77Ty'></ul>
                      <legend id='V77Ty'><style id='V77Ty'><dir id='V77Ty'><q id='V77Ty'></q></dir></style></legend>

                      <small id='V77Ty'></small><noframes id='V77Ty'>

                    1. <i id='V77Ty'><tr id='V77Ty'><dt id='V77Ty'><q id='V77Ty'><span id='V77Ty'><b id='V77Ty'><form id='V77Ty'><ins id='V77Ty'></ins><ul id='V77Ty'></ul><sub id='V77Ty'></sub></form><legend id='V77Ty'></legend><bdo id='V77Ty'><pre id='V77Ty'><center id='V77Ty'></center></pre></bdo></b><th id='V77Ty'></th></span></q></dt></tr></i><div id='V77Ty'><tfoot id='V77Ty'></tfoot><dl id='V77Ty'><fieldset id='V77Ty'></fieldset></dl></div>

                              <tbody id='V77Ty'></tbody>