Added npm preinstall task to call php pre-install script