Manage git hooks easily in your composer configuration. This package makes it easy to implement a consistent project-wide usage of git hooks. Specifying hooks in the composer file makes them available for every member of the project team. This provides a consistent environment and behavior for everyone which is great.

说白了就是用composer-git-hooks生成git hooks,非常简单的实现了在项目内的一致性的使用git hooks。对于项目组内的每个成员都是可以改变在composer文件的hooks。这为所有great的人提供了一贯的环境和行为。

可以在项目内配置composer.json如下:

 

安装package :

下面是我的composer配置文件:

 

最后来个效果图:

具体的工具项目地址:https://github.com/BrainMaestro/composer-git-hooks