
ショコラ
Git composer.jsonとcomposer.lockをコミットした後にやる操作
これは、環境Aで git に変更した composer.json と composer.lock をコミットした。
環境Bで git pull した。
この後やる操作は「composer install」です。
これで環境Aと環境Bのライブラリは同じになります。

もっさん先輩
composer install
composer install を実行したときのイメージ。少し待ち時間があって、ガーっとでてきます。
# composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 3 installs, 0 updates, 0 removals
As there is no 'unzip' nor '7z' command installed zip files are being unpacked using the PHP zip extension.
This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
Installing 'unzip' or '7z' (21.01+) may remediate them.
- Downloading php-http/discovery (1.20.0)
- Downloading google-gemini-php/client (1.0.15)
- Downloading google-gemini-php/laravel (1.0.1)
- Installing php-http/discovery (1.20.0): Extracting archive
- Installing google-gemini-php/client (1.0.15): Extracting archive
- Installing google-gemini-php/laravel (1.0.1): Extracting archive
Generating optimized autoload files
Class App\Libs\...
:
Class App\Console\...
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
google-gemini-php/laravel ............................................. DONE
laravel/sail .......................................................... DONE
laravel/sanctum ....................................................... DONE
laravel/tinker ........................................................ DONE
livewire/livewire ..................................................... DONE
nesbot/carbon ......................................................... DONE
nunomaduro/collision .................................................. DONE
nunomaduro/termwind ................................................... DONE
spatie/laravel-ignition ............................................... DONE
89 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
以上