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. [Utility &amp; Helpers](/categories/utility)
4. /
5. captainhook/captainhook-phar

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

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

PHP git hook manager

5.29.2(1y ago)6630.2k↓12.5%120MITPHPPHP &gt;=8.0CI passing

Since Jul 27Pushed 4mo 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 2w 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

53

—

FairBetter than 96% of packages

Maintenance59

Moderate activity, may be stable

Popularity43

Moderate usage in the ecosystem

Community26

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

498d 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.1k8.0M549](/packages/captainhook-captainhook)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5346.5M600](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2125.4M213](/packages/drupal-core-project-message)[phpro/grumphp-shim

GrumPHP Phar distribution

284.9M348](/packages/phpro-grumphp-shim)[altis/core

Core module for Altis

19233.0k4](/packages/altis-core)[altis/local-server

Local Server module for Altis

18225.6k4](/packages/altis-local-server)

PHPackages © 2026

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