Complete the code to require a package using Composer.
composer [1] monolog/monologThe composer require command adds a package to your project and updates composer.json.
Complete the command to update all dependencies to the latest versions allowed by composer.json.
composer [1]The composer update command updates all dependencies to the latest versions according to the version constraints in composer.json.
Fix the error in the command to remove a package.
composer [1] monolog/monologThe correct command to remove a package is composer remove.
Fill both blanks to check the installed version of a package and list all available Composer commands.
composer [1] monolog/monolog composer [2]
composer show monolog/monolog shows details about that package.
composer list lists all available Composer commands, but to list installed packages you use composer show without arguments. Here, 'list' is used to show commands.
Fill all three blanks to add a package with a specific version constraint and then update dependencies.
composer [1] guzzlehttp/guzzle:[2] composer [3]
Use composer require guzzlehttp/guzzle:7.5.0 to add that exact version.
Then composer update updates dependencies accordingly.