install the pre-push-hook with composer example composer.json part ... "scripts": { "post-install-cmd": [ "@install-pre-push-hook" ], "post-update-cmd": [ "@install-pre-push-hook"