Forrest logo
back to the composer tool

composer:packages:show

How to show all installed composer packages
$ composer show --format=json
try on your machine

This command is used in the context of the Composer package manager in PHP.

The composer show command provides detailed information about the packages installed in the current project. By default, it displays the information in a human-readable format.

The --format=json option is added to specify the output format as JSON instead of the default format. JSON stands for JavaScript Object Notation, which is a lightweight data interchange format. Using this format, the command will display the information in a structured manner as a JSON object.

By using the composer show --format=json command, you can retrieve the package information in a machine-readable format, which is useful for automation, scripting, or integration with other tools and systems.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the composer tool