2

When I install the php composer.phar require intervention/image this,

I got the one error:

Could not open input file: composer.phar

I follow this step but I can't find the solution to my error: Intervention Image

Udhav Sarvaiya
  • 9,380
  • 13
  • 53
  • 64

3 Answers3

1

To install the most recent version, run the following command

composer require intervention/image

OR

Add to composer.json file:

"require": {
        "intervention/image": "^2.5",
    },

After, Run this command in the command prompt: composer update

More info: intervention/image

Udhav Sarvaiya
  • 9,380
  • 13
  • 53
  • 64
0

use just

composer require intervention/image

instead of

php composer.phar require intervention/image

zahid hasan emon
  • 6,023
  • 3
  • 16
  • 28
0

If you added composer to your system environment variables. you can call composer globally like this: composer require intervention/image

How to add composer to system environment variables

  • Search "Edit the system environment variables" in start menu.
  • Click on "Environment variables"
  • Find "PATH" variable and edit it.
  • Add your composer installation folder path. C:\ProgramData\ComposerSetup\bin

Find your composer installation folder

You can find where composer is installed by this command: which composer

AmirRezaM75
  • 1,030
  • 14
  • 17