satis
satis copied to clipboard
Show package version in use next to required packages
Hi,
It would be very helpful if you could show the package version currently in use next to the required by packages.
For example:
I have the following 2 repos in my satis config. Application achristodoulou/my-application uses achristodoulou/my-package and having next to the package in required by the version as well it would be very helpful to identify which project is outdated and composer update is required.
--------------------------
achristodoulou/my-package
Releases dev-master, 4.2.1, v4.2.0, v4.1.0, v4.0.1, v4.0.0, v3.0.4, v3.0.3, v3.0.2, v3.0.1, v3.0.0, v2.0.1, v2.0.0, v1.0.1, v1.0.0
Required by: achristodoulou/my-application(v4.2.0) <---- show which version it uses
--------------------------
achristodoulou/my-application
Releases dev-master
Required by: none
--------------------------
Thanks
composer show -i
Thanks but I was not referring to command line, but to display this information in Satis static web pages instead.
I forgot I am subscribed to the satis repository. I don't really know much about satis. But I suspect your desired functionality is unlikely to be implemented. There simply is no real value. The only thing that could be done is determine what version the composer.json allows (which could be a range, not a specific version). This will not tell you what it actually has installed (based on either lock file or other conditions). So, kinda useless.
Sorry, but determining the version from composer.json is really useless as I see it because if that was the case then I would just install packagist. Instead I am using Satis, and I have all my private applications and packages inside Satis, if then I could just tell what is the current version for each package required by another package, that will give real value.
Yeah sorry, I don't see any value there. You're welcome to try and write it yourself, submit a PR :-)