Composer API
Class

Composer\Script\ScriptEvents

class ScriptEvents

The Script Events.

Constants

PRE_INSTALL_CMD

The PREINSTALLCMD event occurs before the install command is executed.

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

POST_INSTALL_CMD

The POSTINSTALLCMD event occurs after the install command is executed.

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

PRE_UPDATE_CMD

The PREUPDATECMD event occurs before the update command is executed.

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

POST_UPDATE_CMD

The POSTUPDATECMD event occurs after the update command is executed.

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

PRE_STATUS_CMD

The PRESTATUSCMD event occurs before the status command is executed.

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

POST_STATUS_CMD

The POSTSTATUSCMD event occurs after the status command is executed.

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

PRE_AUTOLOAD_DUMP

The PREAUTOLOADDUMP event occurs before the autoload file is generated.

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

POST_AUTOLOAD_DUMP

The POSTAUTOLOADDUMP event occurs after the autoload file has been generated.

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

POST_ROOT_PACKAGE_INSTALL

The POSTROOTPACKAGE_INSTALL event occurs after the root package has been installed.

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

POST_CREATE_PROJECT_CMD

The POSTCREATEPROJECT event occurs after the create-project command has been executed.

Note: Event occurs after POSTINSTALLCMD

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

PRE_ARCHIVE_CMD

The PREARCHIVECMD event occurs before the update command is executed.

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

POST_ARCHIVE_CMD

The POSTARCHIVECMD event occurs after the status command is executed.

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

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.