PHPackages                             captainhook/captainhook-phar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. captainhook/captainhook-phar

ActiveComposer-plugin

captainhook/captainhook-phar
============================

PHP git hook manager

5.29.2(1y ago)6477.3k—7.3%120MITPHPPHP &gt;=8.0CI passing

Since Jul 27Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/captainhook-git/captainhook-phar)[ Packagist](https://packagist.org/packages/captainhook/captainhook-phar)[ Docs](https://github.com/captainhook-git/captainhook)[ GitHub Sponsors](https://github.com/sponsors/sebastianfeldmann)[ RSS](/packages/captainhook-captainhook-phar/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (107)Used By (20)

CaptainHook as PHAR file
========================

[](#captainhook-as-phar-file)

[![Latest Stable Version](https://camo.githubusercontent.com/8655fb68e3c36e8997963cad5d6e439584353456a274ffa2f45526e212acde1b/68747470733a2f2f706f7365722e707567782e6f72672f6361707461696e686f6f6b2f6361707461696e686f6f6b2d706861722f762f737461626c652e7376673f763d31)](https://packagist.org/packages/captainhook/captainhook)[![PHP Version Require](https://camo.githubusercontent.com/ac1e1d3207c4fc9f26af9b4115e52358701df0bb8c6bac7b936dcfc8e71c27ff/68747470733a2f2f706f7365722e707567782e6f72672f6361707461696e686f6f6b2f6361707461696e686f6f6b2f726571756972652f706870)](https://packagist.org/packages/captainhook/captainhook)[![Downloads](https://camo.githubusercontent.com/c23c9f3a100556a597644fc8ed67ffa22df66c9c4754862465a56c8f31c7a796/68747470733a2f2f706f7365722e707567782e6f72672f6361707461696e686f6f6b2f6361707461696e686f6f6b2d706861722f646f776e6c6f616473)](https://packagist.org/packages/captainhook/captainhook)[![License](https://camo.githubusercontent.com/d1cd643f8c11592fa77cf4c17e521c059adb89ffd913bd62409ba22291d5f345/68747470733a2f2f706f7365722e707567782e6f72672f6361707461696e686f6f6b2f6361707461696e686f6f6b2f6c6963656e73652e7376673f763d31)](https://packagist.org/packages/captainhook/captainhook)[![Code Coverage](https://camo.githubusercontent.com/ad949aa656d2e06da8a414781c09c4c483d5234f29ebc445f1588ac1cadf9f3f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6361707461696e686f6f6b2d6769742f6361707461696e686f6f6b2f6261646765732f636f7665726167652e706e673f623d6d61696e26763d31)](https://scrutinizer-ci.com/g/captainhook-git/captainhook/?branch=master)[![X](https://camo.githubusercontent.com/27933d984283c37957e1b26a7ea2d85dcf44b3805ed059412ab952ac7d18638d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f582d2534306361707461696e686f6f6b7068702d626c61636b2e737667)](https://twitter.com/intent/user?screen_name=captainhookphp)[![Mastodon](https://camo.githubusercontent.com/667ccfeb74486fa0d9f369d6672b8d1d56b43554c0e3ce8b932f604f838ea71e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6173746f646f6e2d2534306361707461696e686f6f6b2d707572706c652e737667)](https://phpc.social/@captainhook)

This package will install the CaptainHook PHAR file via Composer.

```
$ composer require --dev captainhook/captainhook-phar

```

This will download the PHAR to `vendor/bin` and update it every time you run `composer update`.

Source code &amp; quick start
-----------------------------

[](#source-code--quick-start)

You can find the code and a quick starter guide at the [captainhook/captainhook](https://github.com/captainhookphp/captainhook) repository.

Documentation
-------------

[](#documentation)

The full documentation can be found at [captainhook.info](http://php.captainhook.info).

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance70

Regular maintenance activity

Popularity42

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~0 days

Total

105

Last Release

406d ago

PHP version history (4 changes)5.5.0PHP ^7.3 || ~8.0.0

5.11.1PHP ^7.3 || ^8.0

5.15.3PHP ^8.0 || ^8.1 || ^8.2

5.24.3PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9250358?v=4)[Sebastian Feldmann](/maintainers/sebastianfeldmann)[@sebastianfeldmann](https://github.com/sebastianfeldmann)

---

Top Contributors

[![sebastianfeldmann](https://avatars.githubusercontent.com/u/9250358?v=4)](https://github.com/sebastianfeldmann "sebastianfeldmann (16 commits)")[![marcelthole](https://avatars.githubusercontent.com/u/850125?v=4)](https://github.com/marcelthole "marcelthole (1 commits)")

---

Tags

composerhacktoberfestpharphivegithookspre-commitpre-pushcommit-msgprepare-commit-msgpost-merge

### Embed Badge

![Health badge](/badges/captainhook-captainhook-phar/health.svg)

```
[![Health](https://phpackages.com/badges/captainhook-captainhook-phar/health.svg)](https://phpackages.com/packages/captainhook-captainhook-phar)
```

###  Alternatives

[captainhook/captainhook

PHP git hook manager

1.1k6.8M370](/packages/captainhook-captainhook)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.2M122](/packages/ramsey-conventional-commits)[captainhook/secrets

Utility classes to detect secrets

103.6M1](/packages/captainhook-secrets)[projektgopher/whisky

A simple CLI tool for managing a project's git hooks across multiple members.

241281.3k20](/packages/projektgopher-whisky)[bernardosilva/git-hooks-php

Composer git-hook package with hooks for your php projects.

2516.7k1](/packages/bernardosilva-git-hooks-php)[wcm/git-php-hooks

Write git hooks with PHP, organize them on a per-project base and automatically add them

6441.1k3](/packages/wcm-git-php-hooks)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
