简体   繁体   English

Xampp / Composer / Zend Framework 2安装问题

[英]Xampp / Composer / Zend Framework 2 Installation issues

Ok, so I have a composer.json file, a composer.lock file, and a composer.phar file. 好的,所以我有一个composer.json文件,一个composer.lock文件和一个composer.phar文件。 All the info I need to install Zend Framework I believe is in the .json file, however I have no idea what I'm doing with composer, and have no idea how to use the .phar file. 我相信安装Zend Framework所需的所有信息都在.json文件中,但是我不知道我在用作曲家做什么,也不知道如何使用.phar文件。 If someone out there can help me out, I would be super great-full. 如果那里有人可以帮助我,我将变得非常充实。 I've been reading tutorials, and watching videos but I'm fairly new to the technical side of php. 我一直在阅读教程和观看视频,但是我对php的技术知识还很陌生。 I've never worked with libraries, or command prompts, so this is all WAY over head. 我从来没有使用过库或命令提示符,所以这一切都是头疼的。

Here is a start: 这是一个开始:

http://getcomposer.org/doc/00-intro.md http://getcomposer.org/doc/00-intro.md

Step one: Download composer.phar 第一步:下载composer.phar

$ curl -sS https://getcomposer.org/installer | php

Step Two: 第二步:

$ php composer.phar install

That will download all the file dependencies outlined in the composer.json file. 这将下载composer.json文件中概述的所有文件依赖项。

A couple notes: 几个注意事项:

  • Above assumes you are using a bash prompt (Linux or cygwin on windows) If your not using linux you can download composer.phar from getcomposer.org. 以上假设您使用的是bash提示符(Windows上为Linux或cygwin)。如果您未使用Linux,则可以从getcomposer.org下载composer.phar。
  • You have php in your system path meaning that when you type php in your command line it will run the php executable/binary. 您的系统路径中有php,这意味着当您在命令行中键入php时,它将运行php可执行文件/二进制文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM