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.
then run composer update, so that the installation is successful.
it"s strange why the composer require command didn"t respond.