Composer API
Class

Composer\Plugin\PluginEvents

class PluginEvents

The Plugin Events.

Constants

INIT

The INIT event occurs after a Composer instance is done being initialized

The event listener method receives a Composer\EventDispatcher\Event instance.

COMMAND

The COMMAND event occurs as a command begins

The event listener method receives a Composer\Plugin\CommandEvent instance.

PRE_FILE_DOWNLOAD

The PREFILEDOWNLOAD event occurs before downloading a file

The event listener method receives a Composer\Plugin\PreFileDownloadEvent instance.