Closed ZaDarkSide closed 5 years ago
hello @ZaDarkSide what is the use case behind this? is it possible to use same package twice with different versions in the same app?
No, composer doesn't supports this, also PHP can't load the same class twice, but the use case is for the creation of the directory of the library to contain if you wish also the version number.
@ZaDarkSide appending the version number to the package directory name, looks to me a diversion from the main composer functionality, it doesn't mean anything as you can figure it out easily from your composer.json
or composer.lock
which is the most rightful place for it, I don't want to divert from the main composer functionality tbh.
We can re-open it if you want to discuss more.
@mnsami Well what connection there is between how composer handles things and how I want to structure my project libraries? The structure of my project should be chosen by me, not dictated by composer. Why use this (composer-custom-directory-installer) if it does not allows you to make custom directories how I need them to be? What's the point?
As with {$vendor} and {$name}, I would like to see a {$version} variable that will have the version of the package installed so that the following configuration:
Will result in installing the package to the following directory: