Naming requirements for a post-install script PHP file

Post-install script files can be named anything one desires, but the class within the file must be the same name as the file with all path separators replaced by underscores plus "_postinstall". In other words, this postinstall script:

Path/To/Script.php

must contain a class named Path_To_Script_postinstall Due to casing differences between operating systems, it is recommended to always use lowercased file names.

Post-installation Scripts (Previous) Structure of a post-install script (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.