I'd love to be able to check the installed version of a package, not just the one defined in the require/require-dev section.
In particular, I want to know if Symfony 7.3-beta2 is already installed, and if not run a few commands, including composer update (after setting the minimum stability to beta, etc.)
I realize that this means reading the composer.lock file (if it's available) as well, so I know it's not a trivial task.