5
composer updateのおさらい
composerとは??
Composer is a tool for dependency management in PHP. It allows you
to declare the libraries your project depends on and it will manage
(install/update) them for you.
Slide 6
Slide 6 text
6
composer updateのおさらい
composerとは??
Composer is a tool for dependency management in PHP. It allows you
to declare the libraries your project depends on and it will manage
(install/update) them for you.
• PHPのための依存パッケージ管理ツール
• プロジェクトにおける依存するパッケージが定義できる
• パッケージの管理(インストール・更新)ができる
33
明日からコツコツが勝つコツするためのTips
更新可能なパッケージを表示
% composer outdated --patch-only --locked --direct
Color legend:
- patch or minor release available - update recommended
- major release available - update possible
fakerphp/faker 1.10.0 1.10.1 Faker is a PHP library that generates ...
fruitcake/laravel-cors 2.0.5 2.0.5 Adds CORS (Cross-Origin Resource Shari...
Package fruitcake/laravel-cors is abandoned, you should avoid using it. No replacement was suggested.
laravel/framework 9.0.0 9.0.2 The Laravel Framework.
laravel/sanctum 2.14.0 2.14.2 Laravel Sanctum provides a featherweig...
laravel/tinker 2.7.0 2.7.3 Powerful REPL for the Laravel framework.
phpunit/phpunit 9.5.10 9.5.28 The PHP Unit Testing framework.
spatie/laravel-ignition 1.0.0 1.0.11 A beautiful error page for Laravel app...
Package fruitcake/laravel-cors is abandoned, you should avoid using it. No replacement was suggested.
--patch-only
でパッチバージョンの更新のみに絞り込み
その他のオプションもあるので
マニュアルをみるとよいです
Slide 34
Slide 34 text
34
明日からコツコツが勝つコツするためのTips
脆弱性のあるパッケージがあるかどうかチェックする
% composer audit
Found 13 security vulnerability advisories affecting 8 packages:
+-------------------+----------------------------------------------------------------------------------+
| Package | guzzlehttp/guzzle |
| Severity | high |
| CVE | CVE-2022-31091 |
| Title | Change in port should be considered a change in origin |
| URL | https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699 |
| Affected versions | >=7,<7.4.5|>=4,<6.5.8 |
| Reported at | 2022-06-20T22:24:00+00:00 |
+-------------------+----------------------------------------------------------------------------------+
// 略
Found 13 security vulnerability advisories affecting 8 packages: