laravel 如何在 Windows 中安装干预映像

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30361963/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 11:35:34  来源:igfitidea点击:

How to install intervention image with Windows

phplaravelintervention

提问by user3038607

In Intervention Image's website, it says that in order to install the most recent version, I must run the following command :

在 Intervention Image 的网站上,它说为了安装最新版本,我必须运行以下命令:

php composer.phar require intervention/image

I am using Windows 8.1 and I guess this isn't going to work. I already tried and it says : Could not open input file: composer.phar

我使用的是 Windows 8.1,我想这不会奏效。我已经试过了,它说:无法打开输入文件:composer.phar

Am I missing something very easy?

我错过了很容易的东西吗?

回答by Hailemariam

Use this command

使用这个命令

composer require intervention/image

回答by user3038607

As Sinan Bolel mentionned, in windows, instead of "php composer.phar" you type "composer" and the following...

正如 Sinan Bolel 所提到的,在 Windows 中,您输入的是“composer”和以下内容,而不是“php composer.phar”...

回答by Bhuwanendra Singh

First of all you point you project directory after that you should run "composer require intervention/image""command.

首先,你指向你的项目目录,然后你应该运行“composer 需要干预/图像”“命令。

Your result like this

你的结果是这样的

Admin@Admin-dell MINGW64 /c/xampp/htdocs/laravel_dev
$ composer require intervention/image
Using version ^2.3 for intervention/image
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing psr/http-message (1.0)
    Loading from cache

  - Installing guzzlehttp/psr7 (1.3.0)
    Loading from cache

  - Installing intervention/image (2.3.7)
    Downloading: 100%

intervention/image suggests installing ext-imagick (to use Imagick based image processing.)
intervention/image suggests installing intervention/imagecache (Caching extension for the Intervention Image library)
Writing lock file
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan optimize
Generating optimized class loader

Admin@Admin-dell MINGW64 /c/xampp/htdocs/laravel_dev

回答by castis

In order to use composer, you first need to install it.

为了使用composer,您首先需要安装它。

https://getcomposer.org/doc/00-intro.md#installation-windows

https://getcomposer.org/doc/00-intro.md#installation-windows