The following tutorial column of composer will introduce to you the solution to the slow installation dependency of composer, and check the detailed execution log of composer. I hope it will be helpful to friends in need!
composer installation dependencies are slow, check composer’s detailed execution log
Installing composer dependencies on windows WSL
composer install
It was found that the execution was abnormally slow. It was suspected that the domestic mirror was not used, but github was directly accessed.
Need to see composer’s execution log
composer -h
I found that composer’s parameters support
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
So
composer -vvv install
As expected, they all went to github. . .
Installing backpack/crud (3.2.27): Downloading https://api.github.com/repos/Laravel-Backpack/CRUD/zipball/54fb667a1cf64f4c53f8a90a3752d1f964fdec6f Downloading (connecting...) Following redirect (2) https://codeload.github.com/Laravel-Backpack/CRUD/legacy.zip/54fb667a1cf64f4c53f8a90a3752d1f964fdec6f
After I updated to the domestic mirror source of https://laravel-china.org/composer, I found that the installation was still done through github.
After checking, it turned out to be a problem with composer.lock. Delete composer.lock and run composer install to regenerate it. The reason is that composer.lock caches the previous configuration information, causing the new image configuration to be invalid.
For more composer technical articles, please visit the composer column. The address is: https://www.php.cn/tool/composer/
The above is the detailed content of What should I do if composer installation dependencies are slow?. For more information, please follow other related articles on the PHP Chinese website!

Recently, I wondered with a number of it was the way to have been the sole of the Obrasil Line: AnecSeed the Unstruation and Efficiency. Economic.

I encountered a tricky problem when developing a multiplayer project: how to quickly implement a fully functional and easy-to-maintain TicTacToe feature. Trying to manually write game logic and API calls is not only time consuming but also error-prone. Fortunately, I found the gonza4/tic-tac-toe-sdk-php library, which is easily integrated through Composer, completely solving my troubles.

Recently, when building a website based on CMSIRsite, I encountered a requirement: I need to add a guest message function to the website. Although CMSIRsite is powerful, it does not itself provide a ready-made guest message module. To solve this problem, I started looking for a suitable solution and eventually found a module called avl/admin-gb, designed for CMSIRsite, which perfectly suited my needs.

I encountered a problem when developing a weather-related application: how to get weather data efficiently and accurately. After trying several methods, I found the process of getting data directly from the weather API cumbersome and error-prone, especially when dealing with multiple data sources and cache policies. Finally, I found the softwarelabnet/weather package, which is installed through Composer, simplifying the process of obtaining and managing weather data.

Summary Description: Implementing an efficient and easy-to-use color selector is a common but challenging requirement when developing a project in the Yii2.0 framework. Through the sjaakp/yii2-iro library, I successfully integrated an iro.js-based color selector in my project, greatly improving user experience and development efficiency. This article will introduce in detail how to install and use this library using Composer and share its application effects in actual projects.

I'm having a problem when dealing with a project that needs to interact with the maitavr.orgAPI: how to efficiently integrate and use this API. maitavr.org provides a powerful user management system, but its API documentation and integration methods are not intuitive, which leads me to encounter many difficulties during the development process. Finally, I successfully simplified the integration and usage of the API by using Composer and the snicksnk/maitavr-api library.

When developing a PHP project that requires high-security data transfer, I encountered a challenge: how to maintain consistency of encryption algorithms between different PHP versions while ensuring performance and security. After some exploration, I discovered the JustEncrypt library, an encryption solution designed specifically for PHP that not only solved my problem, but also provided great convenience.

I encountered a common but tricky problem when developing an application based on the Yii2 framework: how to handle image uploads efficiently. Users often need to upload pictures of various formats and sizes, and I need to make sure these pictures are processed and stored correctly. After trying multiple methods, I found that the extension library sergks/yii2-image-behavior can solve this problem perfectly.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Chinese version
Chinese version, very easy to use

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool