PHP - Composer(パッケージ管理) - アップデート
- 1. 概要
- 2. アップデート
- 3. とりあえず
1. 概要
前ページに書いてあるのは、「composer」自体のバージョンアップ。
ここでは、「composer」を使用して、インストールしたパッケージをアップデートする方法です。
2. アップデート
実は、他のページに書いていますが。
「openpsa/universalfeedcreator」ちゅうのをインストールしています。
そのパッケージを使っていたのですが、ある日、こけるようになりました。
考えてみると。
「PHP」をアップデートしていたのです。
「Laravel」は、忘れずにアップデートしたんだけどな。
アップデートは、パッケージをインストールしたディレクトリへ移動して。
composer update
これだけ。
わらわら、ログが出力されますな。
Loading composer repositories with package information
Updating dependencies
Lock file operations: 5 installs, 37 updates, 6 removals
- Removing herrera-io/json (1.0.3)
・・・ 略 ・・・
- Removing seld/jsonlint (1.7.1)
- Upgrading doctrine/annotations (v1.6.0 => 1.14.3)
- Locking doctrine/deprecations (1.1.3)
- Upgrading doctrine/instantiator (1.1.0 => 1.5.0)
・・・ 略 ・・・
- Upgrading jms/parser-lib (1.0.0 => 1.0.1)
- Downgrading jms/serializer (1.13.0 => 1.7.1)
- Upgrading monolog/monolog (1.23.0 => 1.27.1)
- Upgrading openpsa/universalfeedcreator (v1.8.3 => v1.9.0)
- Locking padraic/humbug_get_contents (1.0.4)
- Locking padraic/phar-updater (v1.0.6)
- Upgrading phpcollection/phpcollection (0.5.0 => 0.6.0)
・・・ 略 ・・・
- Upgrading twig/twig (v1.35.4 => v1.44.7)
- Locking webmozart/assert (1.11.0)
- Downgrading zendframework/zend-cache (2.8.2 => 2.5.3)
・・・ 略 ・・・
- Downgrading zendframework/zend-json (3.1.0 => 2.6.0)
- Locking zendframework/zend-math (2.5.2)
- Downgrading zendframework/zend-serializer (2.9.0 => 2.5.1)
- Downgrading zendframework/zend-servicemanager (2.7.11 => 2.6.0)
- Downgrading zendframework/zend-stdlib (2.7.7 => 2.7.4)
- Upgrading zetacomponents/base (1.9.1 => 1.9.4)
- Upgrading zetacomponents/document (1.3.1 => 1.3.4)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 5 installs, 37 updates, 6 removals
- Downloading psr/log (1.1.4)
・・・ 略 ・・・
- Downloading phpdocumentor/phpdocumentor (v2.9.1)
- Removing seld/jsonlint (1.7.1)
・・・ 略 ・・・
- Removing herrera-io/json (1.0.3)
- Upgrading symfony/polyfill-mbstring (v1.9.0 => v1.29.0): Extracting archive
・・・ 略 ・・・
- Upgrading symfony/finder (v2.8.46 => v2.8.52): Extracting archive
- Installing padraic/phar-updater (v1.0.6): Extracting archive
- Upgrading monolog/monolog (1.23.0 => 1.27.1): Extracting archive
- Downgrading jms/serializer (1.13.0 => 1.7.1): Extracting archive
- Upgrading erusev/parsedown (1.7.1 => 1.7.4): Extracting archive
- Upgrading phpdocumentor/phpdocumentor (v2.9.0 => v2.9.1): Extracting archive
3 package suggestions were added by new dependencies, use 'composer suggest' to see details.
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
・・・ 略 ・・・
Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead.
Generating autoload files
7 packages you are using are looking for funding.
Use the 'composer fund' command to find out more!
Found 1 security vulnerability advisory affecting 1 package.
Run "composer audit" for a full list of advisories.
最後の方のメッセージは、黄地で表示されているので、なんか「composer audit」とかなんとかやらなければ、いけないのか?
英語なのでよくわからない。
3. とりあえず
とりあえず、こけていた処理は、動作するようになりました。
|
|