Search code examples
laravelintervention

Intervention Image - Could not open input file: composer.phar


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


Solution

  • 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