Composer allows users to create packages that are composer plugins. Plugins can subscribe to events emitted during the regular use of a composer and do things.
Composer also allows users to create classes and objects that are composer installers. A Composer Installer in a class that can install files outside of the composer vendor
folder. The way you tell Composer about an installer is to create a composer plugin, and in the plugin's activate
method you instantiate an installer and add it to composer's installation manager.
These are both concepts I came to understand by reading the above linked docs. What I don't understand is, what is a composer package of type composer-installer
. I don't see any mention of these in the docs
There appear to be around 115 of these packages in the packagist registry. I've taken a look at one of these and it appears to be a package you can add as a composer plugin, but that composer will recognize as an installer. I'm not familiar enough with how composer installers to know if this is correct, or if there's different functionality in these composer-installer
package.
What are these packages? Was this some sort of alpha feature of composer installers ended up being abandoned? Or is this a future feature? Regardless -- will packages of type composer-installer
be supported into the future, or is this some weird vestigial thing that's best to leave behind?