{"repo":"captainhook-git/captainhook","free":true,"listed":false,"github":"https://github.com/captainhook-git/captainhook","clone":"git clone https://github.com/captainhook-git/captainhook.git","description":"CaptainHook is a very flexible git hook manager for software developers that makes sharing git hooks with your team a breeze.","language":"PHP","stars":1114,"topics":["php","git","git-hooks","hacktoberfest","automation","code-quality"],"license":"MIT","category":"dev-tools","readme_excerpt":"CaptainHook CaptainHook is an easy to use and very flexible git hook library for php developers. It enables you to configure your git hook actions in a simple json file. You can use CaptainHook to validate or prepare your commit messages, ensure code quality or run unit tests before you commit or push changes to git. You can automatically clear local caches or install the latest composer dependencies after pulling the latest changes. CaptainHook makes it easy to share hooks within your team and even can make sure that everybody in your team activates the hooks locally. You can run cli commands, use some built in validators, or write your own PHP classes that get executed by CaptainHook . For more information have a look at the documentation. Installation The preferred method to install CaptainHook is to install the PHAR file. You can do so by using Phive, use the PHAR Composer package, or download the PHAR from the GitHub release page. Or use Composer to install it. If you want to get the source code with all its dependencies you can use: Setup After installing CaptainHook you can use the captainhook executable to create a configuration. After creating the captainhook.json configuration file you have to activate the hooks by installing them to your local .git directory. To do so just run the following CaptainHook command. Have a look at this short installation video. One of the goals of CaptainHook is to make it easy for a team to use the same git hooks. If you want to make s","default_branch":null,"files":null,"tree":[],"storefront":"/r/captainhook-git","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/captainhook-git/captainhook/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}