Composer | Why can't require? be used? The update command is running normally.

I just wanted to use composer to install the PHPExcel class library in my thinkphp5.1 project. Execute the command under the project directory:

composer require phpoffice/phpexcel

after execution, the terminal command line did not respond, and remained stuck there without movement. It can only be forced to end.

then I modified the composer.json file in the project to add PHPExcel.

clipboard.png

then run composer update, so that the installation is successful.

it"s strange why the composer require command didn"t respond.

Php
Jul.08,2021

change the version

Menu