我在哪里以及如何运行作曲家命令? [英] Where and how can I run composer commands?

查看:85
本文介绍了我在哪里以及如何运行作曲家命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Composer有点迷茫,文档并没有真正帮助我.我基本上是想安装Laravel,但我不知道我需要在哪里运行命令以及如何运行.

I'm kinda lost with Composer and the documentation isnt really helping me. I bascially want to install Laravel but I dont know where I need to run the commands and how.

我已经通过exe在运行XAMPP的Windows PC上安装了作曲器.

I've installed composer via the exe on a windows PC that runs XAMPP.

例如,以下命令:

composer global require "laravel/installer=~1.1"

如何运行此命令?在Windows控制台中?哪里有关系吗?

How can I run this command? In the windows console? And does it matter where?

推荐答案

转到htdocs文件夹,右键单击鼠标,您将看到一个名为

Go to htdocs folder and right click on mouse then you will see one option called

在此处使用作曲家 点击那个,然后cmd将打开

use composer here click on that then cmd will open

然后您可以使用诸如

composer create-project laravel/laravel

这将创建laravel安装程序.

this will create laravel setup.

执行其他命令,例如 撰写安装

To perform other commands like compose install

作曲家更新

php artisan命令

php artisan commands

您需要右键单击项目并在此处使用composer,然后才可以执行composer安装,composer更新,php artisan以及所有操作.

you need to right click on project and use composer here then only you can perform composer install,composer update, php artisan and all .

这篇关于我在哪里以及如何运行作曲家命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆