When using Composer to manage your PHP dependencies, sometimes it’s helpful to fetch the versions available for a specific package. This is the command I use.
This command lists all of the versions available for psr/log
composer show "psr/log" --all --format=json | jq -r '.versions[]'
Grep results to only show those that include the string dev
composer show "psr/log" --all --format=json | jq -r '.versions[]' | grep 'dev'
Leave a Reply