PHP composer show view installed libraries

Composer logo
0saves

To effectively manage and view the list of all PHP libraries installed in your project using Composer, you can utilize the following command:

composer show | more

Adding the | more part to the command is particularly helpful when dealing with extensive lists. This suffix enables you to paginate the output, making it easier to read and navigate, especially when the list extends beyond the size of one screen.

For more targeted searches, especially when you need to find a specific library, you can filter the output using this command:

composer show | grep -i "packageName"

Here, | grep -i “packageName” serves as a powerful tool. It performs a case-insensitive search within your library list, allowing you to quickly locate any library fragment by name. This feature is incredibly useful for swiftly pinpointing the exact library you’re interested in, amidst a potentially large collection of installed libraries.