Download the PHP package sebastianfeldmann/captainhook without Composer
On this page you can find all versions of the php package sebastianfeldmann/captainhook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sebastianfeldmann/captainhook
More information about sebastianfeldmann/captainhook
Files in sebastianfeldmann/captainhook
Package captainhook
Short Description PHP git hook manager
License MIT
Homepage https://github.com/sebastianfeldmann/captainhook
Informations about the package captainhook
NOTE: This repository is abandoned, please use the official captaionhook repository instead.
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.
Install official version
Install the CaptainHook PHAR using Phive or download the PHAR from the github release page.
Or use Composer to install CaptainHook.
Setup
After installing CaptainHook you can use the captainhook executable to create a configuration.
Now there should be a captainhook.json configuration file.
If you are not using the composer-plugin
yet you have to activate the hooks manually by installing them to
your local .git repository. To do so just run the following captainhook command.
Have a look at this short installation video.
If you want to make sure your whole team uses the same hooks and you want to make sure everybody has the
hooks installed you can use the CaptainHook composer-plugin
as an addition.
The plugin will make sure that the hooks get activated after every composer install
or update
.
If you don't like the extra dependency just add the following scripts
command to your composer.json
file instead.
Configuration
Here's an example captainhook.json configuration file.
Contributing
So you'd like to contribute to the CaptainHook
library? Excellent! Thank you very much.
I can absolutely use your help.
Have a look at the contribution guidelines.
All versions of captainhook with dependencies
ext-json Version *
ext-spl Version *
sebastianfeldmann/cli Version ^2.1
sebastianfeldmann/git Version ^1.0.7
symfony/console Version >=2.7