Category: Composer 1
-
Post Views: 16 1. Reference URL:https://www.shuijingwanwq.com/en/2021/04/15/10238/. Updating Yii 2 to the latest version based on Composer, upgrade the Yii Framework from version 2.0.35 to 2.0.41.1. ./yii has no output. as shown in Figure 1 2. ./yii has the normal output of output. as shown in Figure 2 3. Edit the ./yii file, there is an output: 0. as shown in…
-
Post Views: 53 1. Composer has been installed before, to ensure the latest version is used. You can update Composer to version 2.0.12 by running composer self-update, as shown in Figure 1 2. Updating Yii 2 to the latest version by running Composer Update, the Yii Framework has been upgraded from version 2.0.35 to 2.0.41.1, as shown in Figure 2…
-
Post Views: 17 1. In phpstorm prompt: Invalid vcs root mapping. The directory <project>\vendor\wartron\yii2-uuid is registered as a git root, but no git repositories were found there. as shown in Figure 1 2. Click Configure to enter the configuration interface. Discover: Vendor\Wartron\Yii2-UUID is marked red. as shown in Figure 2 3. Reference URL:https://www.shuijingwanwq.com/2020/05/11/4130/. The reason is that the directory is…
-
Post Views: 14 1. When building an image in Jenkins, an error is reported: fatal: could not read from remote repository. Although the Packagist image address has been switched to Alibaba Cloud:https://mirrors.aliyun.com/composer/. View Dockerfile. as shown in Figure 1 2. I finally decided to add the /vendor directory to the git repository: # /vendor, edit .gitignore 3. Edit the Dockerfile…
-
Post Views: 14 1. Optimize the composer to automatically load, execute the command: composer dumputoload -o, prompt: deprecation notice: does not comply with PSR-0 autoloading stan Ard. It will not autoload anymore in composer v2.0. As shown in Figure 1 2. After translation, the notification of deprecation: the class does not meet the automatic loading standard of PSR-0. It will…
-
Post Views: 13 1. When executing the Composer Update, the prompt: Package Codeception/Base is abandoned, you should avoid using it. No Replacement was Suggested., as shown in Figure 1 2. Since I am using the Yii 2 advanced project template, look at composer.json on github, and find that there are no dependencies: codeception/base, refer to:https://github.com/yiisoft/yii2-app-advanced/blob/2.0.35/composer.json, as shown in Figure 2…
-
Post Views: 16 1. Edit .gitignore and add /vendor to the git warehouse, as shown in Figure 1 2. Failed to build in Jenkins, check Console output. as shown in Figure 2 3. Docker deployment, delete the composer install. Edit Dockerfile. as shown in Figure 3 4. Build successfully in Jenkins. as shown in Figure 4 5. Failed to start…
-
Post Views: 12 1. GetID3() is a PHP script that extracts useful information from MP3 and other multimedia file formats. Open URL:https://github.com/JamesHeinrich/getID3 2. Install based on composer: jamesheinrich / getid3. The URL to open the PHP package repository:https://packagist.org, search: jamesheinrich / getid3 , get the search result: james-heinrich/getid3, as shown in Figure 1 3. In PowerShell, execute the installation command:…