Composer API
Class

Composer\Installer\PackageEvents

class PackageEvents

Package Events.

Constants

PRE_PACKAGE_INSTALL

The PREPACKAGEINSTALL event occurs before a package is installed.

The event listener method receives a Composer\Installer\PackageEvent instance.

POST_PACKAGE_INSTALL

The POSTPACKAGEINSTALL event occurs after a package is installed.

The event listener method receives a Composer\Installer\PackageEvent instance.

PRE_PACKAGE_UPDATE

The PREPACKAGEUPDATE event occurs before a package is updated.

The event listener method receives a Composer\Installer\PackageEvent instance.

POST_PACKAGE_UPDATE

The POSTPACKAGEUPDATE event occurs after a package is updated.

The event listener method receives a Composer\Installer\PackageEvent instance.

PRE_PACKAGE_UNINSTALL

The PREPACKAGEUNINSTALL event occurs before a package has been uninstalled.

The event listener method receives a Composer\Installer\PackageEvent instance.

POST_PACKAGE_UNINSTALL

The POSTPACKAGEUNINSTALL event occurs after a package has been uninstalled.

The event listener method receives a Composer\Installer\PackageEvent instance.