composer / package-versions-deprecated

:package: Composer addon to efficiently get installed packages' version numbers
MIT License
1.51k stars 9 forks source link

Update README.md with information how to use this package #31

Closed kubawerlos closed 2 years ago

kubawerlos commented 2 years ago

Should it be required directly as vimeo/psalm does or with "composer-runtime-api": "^2.0", in composer.json as infection/infection does?

Seldaek commented 2 years ago

If you require composer-runtime-api, you should use the native Composer 2 class Composer\InstalledVersions documented here https://getcomposer.org/doc/07-runtime.md#installed-versions

This package here should not be used anymore, it's just here as a way to allow smooth migration from ocramius/package-versions to the native Composer API. The long term goal is that it would not be used anymore.